When I specify FROM/TO time values with DATE, my reports show time of 00:00

Document ID : KB000026128
Last Modified Date : 14/02/2018
Show Technical Document Details

 

Problem: 

When trying to run a report for a specific day using FROM/TO mm/dd/yy hh:mm:ss, the time on the report shows 00:00:00

Cause:

  The EACH keyword is required when running a report for a specific day/time

 

 

Resolution: 

The report must include the EACH parm. EACH hour, EACH 15 minutes. If there is no value, it will default to DAY.

Sample JCL

// EXEC EXPRPT                                 
INPUT(EXPCARC)                                                                      
FROM   02/03/16 13:44:59
TO 02/03/16 14:29:59
SELECT TRANID(nnnn)
DEFINE ID MYID TERMID ' ' TRANID
TAB DATETIME MYID DATASET REQUESTS AND DATASET UPDATES AND,
DATASET READS AND DATASET ADDS
EACH HOUR
END
RUN
/*