Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
JCL Skipping steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
Pritam

New User


Joined: 23 Feb 2005
Posts: 1

PostPosted: Wed Feb 23, 2005 12:32 pm    Post subject: JCL Skipping steps
Reply with quote

This is a interview question
" I have a job card with multiple instream procedures and i need to skip the first 2 steps of all the procs. how do i do it "

//jname job
//
//proc proc1
//stp11
//stp12
//stp13
//stp14
//
//proc proc2
//stp21
//stp22
//stp23
//stp24
//
//proc proc3
//stp31
//stp32
//stp33
//stp34
:
:
:
:
now i need to skip stp11.stp12,stp21,stp22, stp31, stp32 everytime i submit my job
Back to top
View user's profile Send private message
References
PostPosted: Wed Feb 23, 2005 12:32 pm    Post subject: Re: JCL Skipping steps Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 2921
Location: Charlotte,NC USA

PostPosted: Wed Feb 23, 2005 9:50 pm    Post subject:
Reply with quote

Code:

//JNAME JOB (...),CLASS=X,MSGCLASS=X               
//* 
//PROC1    PROC                         
//STP11    EXEC PGM=IEFBR14,COND=(ONLY) 
//STP12    EXEC PGM=IEFBR14,COND=(ONLY) 
//STP13    EXEC PGM=IEFBR14             
//STP14    EXEC PGM=IEFBR14             
//         PEND                         
//*                                     
//PROC2    PROC                         
//STP21    EXEC PGM=IEFBR14,COND=(ONLY) 
//STP22    EXEC PGM=IEFBR14,COND=(ONLY) 
//STP23    EXEC PGM=IEFBR14             
//STP24    EXEC PGM=IEFBR14             
//         PEND                         
//*                                     
//PROC3    PROC                                       
//STP31    EXEC PGM=IEFBR14                           
//STP32    EXEC PGM=IEFBR14                           
//STP33    EXEC PGM=IEFBR14                           
//STP34    EXEC PGM=IEFBR14                           
//         PEND                                       
//*                                                   
//         EXEC PROC1                                 
//         EXEC PROC2                                 
//         EXEC PROC3,COND.STP31=ONLY,COND.STP32=ONLY
//*                                                   

Please refer to the "z/OS MVS JCL Reference Guide" for further details on how to code procedure overrides.
Back to top
View user's profile Send private message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 160
Location: hyderabad

PostPosted: Thu Feb 24, 2005 9:16 am    Post subject: doubt
Reply with quote

hi Superk

by mentioning like this

//JS1 EXEC PROC1,COND.STP11=ONLY,COND.STP12=ONLY

we are refering to a step theat is not at all used in the JCL,
Can we refer to a step that's not at all mentioned in the JCL



Thanks
Siva
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 2921
Location: Charlotte,NC USA

PostPosted: Thu Feb 24, 2005 7:06 pm    Post subject:
Reply with quote

Sorry, I neglected to notice that the original post referred to instream procedures. I have modified my response.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1