IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL Skipping steps


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Feb 23, 2005 9:50 pm
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: 191
Location: hyderabad

PostPosted: Thu Feb 24, 2005 9:16 am
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

Global Moderator


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

PostPosted: Thu Feb 24, 2005 7:06 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Identify the count from two diffrent ... DFSORT/ICETOOL 19
No new posts SMF logging in RDT server - Steps inv... PL/I & Assembler 1
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... JCL & VSAM 6
No new posts How steps execute in Job in case of a... JCL & VSAM 4
Search our Forums:

Back to Top