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

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

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Mon Aug 06, 2007 3:41 pm
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
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
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
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
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

Moderator Emeritus


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

PostPosted: Mon Aug 06, 2007 9:23 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
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 Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top