Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
month and day as last qualifiers

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Fri Jan 06, 2006 5:55 pm    Post subject: month and day as last qualifiers
Reply with quote

Code:

//jobname  JOB (),' STEP 1 ',                   
//STEP01   EXEC PGM=EZACFSM1                                       
//SYSOUT   DD SYSOUT=(*,INTRDR)                                   
//SYSIN    DD DATA                                                 
//jobname  JOB (),' STEP 2 ',                   
//STEPK1   EXEC PGM=IEBGENER                                       
//SYSPRINT DD SYSOUT=*                                             
//SYSOUT   DD *                                                   
//SYSUT1   DD  DSN=input,         
//             DISP=SHR                                           
//SYSUT2   DD  DSN=input.D&MON.&DAY,                       
//             DISP=(,CATLG,DELETE),                               
//             SPACE=(CYL,(1,2),RLSE),                             
//             UNIT=SYSDA,                                         
//             DSORG=PS,                                           
//             LRECL=900,                                         
//             RECFM=FB                                           
//SYSIN   DD  DUMMY                                               
/*                   


This job is running fine and giving me the desired output.
But why I have to use another job within the same job?????
What is the reason behind this????

Is there any way by which I can run the second part as just another step in the same jcl itself rather than doing it as a different job. So in the first step I can get the values for month and day and pass it on to the second step where it'll be used
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Fri Jan 06, 2006 7:12 pm    Post subject: Re: month and day as last qualifiers
Reply with quote

pjnithin wrote:
So in the first step I can get the values for month and day and pass it on to the second step where it'll be used

No, JCL doesn't work that way. As a job is submitted, it is checked for syntax, and any variables must be resolved before the job ever starts execution. Only programs are allowed dynamic state changes via either parameter input (PARM=) or from an external source (via an ACCEPT or READ).
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 Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
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
No new posts How to get previous month in SYMNAMES Suganya87 SYNCSORT 9 Fri Oct 28, 2016 1:37 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us