Posted: Tue Jun 02, 2009 3:17 pm Post subject: Setting Dates in JCL
Hi,
I have a job with multiple programs. These programs ACCEPT the System Date and execute based on that date.
Is there a way I can manipulate the System Date in the JCL so that all programs triggered by that JCL use the manipulated System Date.
eg. If I want to test the job today (2nd June 2009) and check what the output of the job would have looked like on 31st May 2009, then is it possible to achieve this by setting the Date to 31 May 2009 in the JCL.
Currently I modify all programs invoked by the job and hardcode the Date to whatever date I require and run the job, which is taking a lot of manual effort.
will give you current date - 2 days which is 20090531. If you want to always pick the last sunday date irrespective of the day of the week then use this
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
Posted: Tue Jun 02, 2009 4:15 pm Post subject:
Of course that doesn't remove the requirement to change the pgms to read an external date rather than ACCEPT the system date.
There are products you can purchase (TICTOC, etc) to intercept date calls and return a given date without pgm modification. Widely used to prepare for Y2K. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
Posted: Tue Jun 02, 2009 7:26 pm Post subject:
For only a few programs, you could modify the code to get the date from a PARM on the EXEC statement. The PARM can be a symbolic parameter easily changed for each run. What you would have liked is the //DATE JCL statement in VSE. _________________ ....Terry
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum