View previous topic :: View next topic
|
Author |
Message |
Praja
New User
Joined: 25 Jul 2006 Posts: 2
|
|
|
|
Hello,
I want to override the system date thru the JCL in order to test my program with different dates without hard coding date in program, can some one give an example JCL.
Thanks
Praja. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Praja wrote: |
... can some one give an example JCL.
|
I would, but such a feature doesn't exist.
You'll have to pass a hard-coded date to your program as a parameter, i.e.
//STEPXXXX EXEC PGM=MYPROG,PARM='MMDDYYYY'
or set the date as a variable and pass the variable, i.e.
// SET THEDATE=MMDDYYYY
...
//STEPXXXX EXEC PGM=MYPROG,PARM='&THEDATE' |
|
Back to top |
|
|
Praja
New User
Joined: 25 Jul 2006 Posts: 2
|
|
|
|
Thank you. |
|
Back to top |
|
|
|