View previous topic :: View next topic
|
Author |
Message |
ratheesh_1983
New User
Joined: 11 Apr 2007 Posts: 19 Location: hyderabad
|
|
|
|
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.
regards ,
rathessh. |
|
Back to top |
|
|
Ajit Parmar
New User
Joined: 06 Aug 2007 Posts: 6 Location: Pune
|
|
|
|
Rathessh,
Do code Restart=ProcP2.Step020
and do code // after step020 in ur proc
Let me know if m wrong |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
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 |
|
|
ratheesh_1983
New User
Joined: 11 Apr 2007 Posts: 19 Location: hyderabad
|
|
|
|
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 |
|
|
vikirum
New User
Joined: 26 Apr 2007 Posts: 30 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|