View previous topic :: View next topic
|
Author |
Message |
i413678 Currently Banned Active User
Joined: 19 Feb 2005 Posts: 112 Location: chennai
|
|
|
|
Hi,
this is the situation a PROC have 5 steps and I am calling that PROC in a jcl.
my requirement is I want to execute 3rd and 5th step of PROC only.
here I dont want to modify the PROC which is calling that PROC. that means this should be done without touching the PROC.
Advance Thanx.
Regards,
Pavan |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
First, you could code a RESTART= parameter on the JOB card to restart at the third PROC step. Next, you would want to code an override in the job to set a COND code parameter for the fourth PROC step to COND=ONLY:
Code: |
//jobname JOB (..),CLASS=X,MSGLCASS=X,RESTART=(jobstep.procstep3)
//*
//jobstep EXEC proc,procstep4.COND=ONLY
//*
|
For more information on Procedures and Overrides, see the "z/OS MVS JCL Reference" guide:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/5.2.1.1?SHELF=&DT=20040712170508&CASE= |
|
Back to top |
|
|
samwise
New User
Joined: 03 Feb 2006 Posts: 2 Location: burlington, nc
|
|
|
|
I saw this post:
Hi,
this is the situation a PROC have 5 steps and I am calling that PROC in a jcl.
my requirement is I want to execute 3rd and 5th step of PROC only.
here I dont want to modify the PROC which is calling that PROC. that means this should be done without touching the PROC.
And I saw your answer:
First, you could code a RESTART= parameter on the JOB card to restart at the third PROC step. Next, you would want to code an override in the job to set a COND code parameter for the fourth PROC step to COND=ONLY:
Code:
//jobname JOB (..),CLASS=X,MSGLCASS=X,RESTART=(jobstep.procstep3)
//*
//jobstep EXEC proc,procstep4.COND=ONLY
//*
What would I need to do to skip two steps, rather than just running two steps.
I need the first 8 steps to run, skip steps 9 & 10, and then continue running steps 11-14. Is there a way? |
|
Back to top |
|
|
elonics
New User
Joined: 05 Jul 2005 Posts: 49 Location: India
|
|
|
|
Hai ,
In the 11th step you code COND=ONLY through your runjcl.
What ever step you want to excute or skip in particular PROC, better use RESTART and COND options according to your requirement. Just be logical while doing that.
Thanks,
El'onics. |
|
Back to top |
|
|
chandan.inst
Active User
Joined: 03 Nov 2005 Posts: 275 Location: Mumbai
|
|
|
|
Hi,
Code cond =(0,LE) or cond=(4095,GE) on steps 9 and 10;so that they'll always be bypassed
regards,
chandan |
|
Back to top |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
I think u can also try this..I found this from the forum only....
//job1 ,,JOB,NOTIFY=PAWAN16,TIME=1
//STEP EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=(PATH WHERE 5 STEP JCL IS PRESENT),DISP=SHR
//SYSUT2 DD DSN=(*,INTRDR),DISP=SHR
//SYSIN DD *
EDIT TYPE=INCLUDE
STEP NAME=(STEP3,STEP5)
/*
//
THIS WILL EXECUTE ONLY THE MENTIONED STEPS IN THE CONTROL CARD.
here instead of mentioning STEP1,STEP2... u mention PROCSTEP.STEP1,PROCSTEP.STEP2.....
hope this works...
corrections welcomed....
Thanks,
Rajesh |
|
Back to top |
|
|
samwise
New User
Joined: 03 Feb 2006 Posts: 2 Location: burlington, nc
|
|
|
|
Thanks everyone, this is all great information. |
|
Back to top |
|
|
|