suvarna
New User
Joined: 24 Aug 2005 Posts: 13
|
|
|
|
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. |
|
Puneet
New User
Joined: 27 Jun 2005 Posts: 9 Location: Chennai
|
|
|
|
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 |
|