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

Different date as input to JCL.


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

New User


Joined: 24 Aug 2005
Posts: 13

PostPosted: Tue Sep 20, 2005 10:00 am
Reply with quote

HI guyz
Please have a look at the following case.

//JHSPRINT EXEC PGM=JHSPRINT
//SYSPRINT DD SYSOUT=*
//OUTFILE DD DSN=SXSARAV.JESYSMSG.OUTFILE(+1),
// DISP=(NEW,CATLG,DELETE),UNIT=(,9),
// DCB=(BLKSIZE=0,LRECL=80,RECFM=FB)
//*
//SYSIN DD *
OPTIONS AUTORESTORE(YES) RESTOREWAIT(10) OUTFILE(OUTFILE)
LOGON SYSTEM(JHS)
PRINT JOB(MOBINSR1) FROMSTARTDATE(06162005) FROMSTARTTIME(0001) -
TOSTARTDATE(06162005) TOSTARTTIME(2359) DSID(00004) -
LOGOFF

I have to PRINT 80 jobs in the similar way. So I have repeated these steps 80 times. But the problem is for each step the date alone I have to manually change.Because the date for each step is different.

Is it possible to pass different dates on to each step of this job by some means.
Back to top
View user's profile Send private message
Puneet

New User


Joined: 27 Jun 2005
Posts: 9
Location: Chennai

PostPosted: Tue Sep 20, 2005 10:10 am
Reply with quote

Hi ,

For this type of situation where we have to pass the different values to the SYSIN, i generally hard code the SYSIN parms in some dataset and then use it.
One solution to your problem is to hardcode different date values in PDS members and then we can pass it thru JCLs to proc calling this PGM step multiple number of times.
I hope I am able to explain you.
Thanks,
Puneet
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts Setting RC using NULLOFL/NOTMTOFL for... SYNCSORT 6
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 11
No new posts COBOL sorting, with input GDG base COBOL Programming 7
Search our Forums:


Back to Top