| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
Pritam
Joined: 23 Feb 2005
Posts: 1
|
| Posted: Wed Feb 23, 2005 12:32 pm Post subject: JCL Skipping steps |
|
|
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 |
|
superk
Joined: 26 Apr 2004
Posts: 3314
Location: Charlotte,NC USA
|
| Posted: Wed Feb 23, 2005 9:50 pm Post subject: |
|
|
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 |
|
sivatechdrive
Joined: 17 Oct 2004
Posts: 168
Location: hyderabad
|
| Posted: Thu Feb 24, 2005 9:16 am Post subject: doubt |
|
|
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 |
|
superk
Joined: 26 Apr 2004
Posts: 3314
Location: Charlotte,NC USA
|
| Posted: Thu Feb 24, 2005 7:06 pm Post subject: |
|
|
| Sorry, I neglected to notice that the original post referred to instream procedures. I have modified my response. |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|