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

executing a particular step in a proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Sat Feb 19, 2005 2:33 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Feb 25, 2005 12:59 am
Reply with quote

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
View user's profile Send private message
samwise

New User


Joined: 03 Feb 2006
Posts: 2
Location: burlington, nc

PostPosted: Fri Feb 03, 2006 12:22 am
Reply with quote

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
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Fri Feb 03, 2006 9:38 am
Reply with quote

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
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Fri Feb 03, 2006 2:00 pm
Reply with quote

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
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Fri Feb 03, 2006 2:28 pm
Reply with quote

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
View user's profile Send private message
samwise

New User


Joined: 03 Feb 2006
Posts: 2
Location: burlington, nc

PostPosted: Fri Feb 03, 2006 6:49 pm
Reply with quote

Thanks everyone, this is all great information.icon_biggrin.gif
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts executing XCTL command in COBOL witho... CICS 10
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top