Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Different date as input to JCL.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Different date as input to JCL.
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us