Thursday, December 8, 2011

JCL: Overriding system date in the JCL

We can use the HourGlass to override the system date in the batch jobs. HourGlass product comes from IBM.


//TEST JOB (111),'//HG101183',CLASS=Z,
// MSGCLASS=8,NOTIFY=&SYSUID

In "//HG101183", the first numeric digit represents the century. "1" represents 20th century and "0" represents 19th century. The 2nd and 3rd numeric digits represents the year. 4th to 6th numeric digits represents the julian day.   

So,
1 - 20
01 - 01
183 is the julian date for 02-JUL-2001

If we want to set the date as 02-JAN-1999, 
we have to set the option as //HG099002

0 - 19
99 - 99




No comments:

Post a Comment

Note: Only a member of this blog may post a comment.