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
 

 

Execute 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
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Mon Aug 06, 2007 3:41 pm    Post subject: Execute a particular step in a proc
Reply with quote

Hi,

I have a job which executes procs (say p1 p2 and p3).My requirement is to execute the job but i need to execute only a particular step(say ps020) inside one of the procs(say p2) .I have to execute all the steps in the previous procs . but when it comes to proc p2 i need to execute only one step inside it.Hence RESTART parameter cannot be used as usual.
Hope someone comes with a helpful suggestion.

icon_question.gif icon_question.gif icon_question.gif
regards ,
rathessh.
Back to top
View user's profile Send private message

Ajit Parmar

New User


Joined: 06 Aug 2007
Posts: 6
Location: Pune

PostPosted: Mon Aug 06, 2007 3:52 pm    Post subject:
Reply with quote

Rathessh,

Do code Restart=ProcP2.Step020
and do code // after step020 in ur proc
Let me know if m wrong
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Aug 06, 2007 3:57 pm    Post subject: Re: execute a particular step in a proc.
Reply with quote

ratheesh_1983,

You can overide conditional codes to all the remaining steps in the proc P2 which you don't wan to execute.

like COND.STEPXX=(0,GE)

~Vamsi
Back to top
View user's profile Send private message
ratheesh_1983

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Mon Aug 06, 2007 4:28 pm    Post subject:
Reply with quote

Hi all,

Thanks for ur replies. But the requirement is like this:
____________________________________________________________
proc1 - all steps to be executed.

proc2 - only ps020 to be executed.(steps ps005, ps006,ps007,ps010 which are before ps020 to be skipped, also ps030,ps035 which occur after ps020 are also to be skipped )

proc3 -all steps to be executed.

_____________________________________________________________

according to what vamsi said i will have to code in my exec proc2 like this:

//step22 exec proc2, cond.ps001=(0,GE),cond.ps006=(0,GE)............

is it right to put multiple overriding step in the same exec.??????
even if if is possible it does not sound to be advisable as i am having a lot no: of steps in the proc2 which i have to skip.

Any other way to execute only ps020 in proc2.

PS: ajith RESTART is not possible in this senario as i need to execute the job steps comming before EXEC proc2.RESTART is just out of quiestion suppose..


regards,

ratheesh.
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Mon Aug 06, 2007 5:01 pm    Post subject: Re: execute a particular step in a proc.
Reply with quote

Good evening:

I did a research a few weeks ago and vaguely remember that using IEBGENER you can accomplish what you want to do. I would highly recommend you to spend some time on the questions posted in the forrum thus far.

This particular example was asked by someone and the solution was also provided.

If only you took that extra bit effort it would help you !

Note: This would submit the jobsteps as mentioned in the SYSIN!

Code:

//JOBNAME,JOB,NOTIFY=&SYSUID,TIME=1
//STEP EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=(JCL Path),DISP=SHR
//SYSUT2 DD DSN=(*,INTRDR),DISP=SHR
//SYSIN DD *
EDIT TYPE=INCLUDE
STEP NAME=(STEP1,STEP2,STEP4,STEP5)
/*
//



Thanks much

Vik Rajagopalan
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Aug 06, 2007 9:23 pm    Post subject:
Reply with quote

Hello,

Please search the forum - this has been discussed multiple times.

I believe IEBGENER in the previous post is a typo - i think it should be IEBEDIT as is in the suggested JCL.

For your posted situation, you will be ahead if you "babysit" the special run and run proc1, submit proc2 via the suggested IEBEDIT, and then run proc3.

IMHO, convoluted restarts and this kind of "special" runs cause more problems than they solve.
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 Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm


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