IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to override the system date thru the JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Praja

New User


Joined: 25 Jul 2006
Posts: 2

PostPosted: Tue Jul 25, 2006 10:14 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 25, 2006 10:51 pm
Reply with quote

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
View user's profile Send private message
Praja

New User


Joined: 25 Jul 2006
Posts: 2

PostPosted: Tue Jul 25, 2006 10:56 pm
Reply with quote

Thank you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts How to delete a user's alias from the... JCL & VSAM 11
Search our Forums:

Back to Top