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
 

 

executing a particular step in a proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: executing a particular step in a proc
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

Moderator Team Head


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

PostPosted: Fri Feb 25, 2005 12:59 am    Post subject:
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:

http://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    Post subject:
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    Post subject: Re: executing a particular step in a proc
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: 269
Location: Mumbai

PostPosted: Fri Feb 03, 2006 2:00 pm    Post subject: Re: executing a particular step in a proc
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    Post subject:
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    Post subject: Re: executing a particular step in a proc
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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