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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top