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
 

 

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: 4648
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
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
No new posts Retrieve current year or month using ... vnktrrd DFSORT/ICETOOL 15 Tue Mar 15, 2016 4:14 pm
No new posts Find list of all TSO users who used i... newroad CA Products 2 Fri Nov 06, 2015 12:01 am
No new posts Find and replace YccyyMmm to previous... santosh_g DFSORT/ICETOOL 5 Fri Oct 09, 2015 1:19 am


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