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
 

 

JCL Skipping steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, 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: 190
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: 4648
Location: Raleigh, 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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions 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. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts Skipping a record from Internal SORT Keanehelp COBOL Programming 4 Tue Jul 28, 2015 9:15 pm
No new posts Count the number of JCL executable steps nartcr JCL & VSAM 5 Wed Nov 05, 2014 2:57 am
No new posts Help Skipping Records based on Condit... nartcr SYNCSORT 10 Fri Aug 22, 2014 2:56 am


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