View previous topic :: View next topic
|
Author |
Message |
suresh_gop1 Warnings : 1 New User
Joined: 23 May 2006 Posts: 18
|
|
|
|
Hi,
I faced question about PROCS in the interview recently. I have one PROC which contains 3 steps. first step executed successfully. second step got abened. I want to restart at 3'rd step only. how can I put condition here.
please tell me |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Look up RESTART in the JCL manual linked to from this site (top of the page, there is a "Manuals" button).
For your example, you would "restart" the job in step3. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
hi,
Use restart parameter in the job card.
Additionally if u want to run only the third step then place a null statement after the step in the proc.
thanks |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
pingte,
Quote: |
if u want to run only the third step then place a null statement after the step in the proc. |
Could you please share how can you put NULL character after 3rd step which is there inside the proc from job? |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
hi murmohk1,
null character has to be put manually in the proc...
i never mentioned that the job will put it in the proc
pingte |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
A null statement should not be put in a proc.
The RESTART is the way to accomplish this requirement. |
|
Back to top |
|
|
suresh_gop1 Warnings : 1 New User
Joined: 23 May 2006 Posts: 18
|
|
|
|
Please write the RESTART code. |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
you will find it in the manuals
Any way here it is
Quote: |
Syntax:
RESTART={* }
{stepname }
{stepname.procstepname }
{stepname.procstepname,checkid}
'*' says the job will restart at the top or within the first job
step
'stepname' names the step in the job where restart is to done
'procstepname' is the name of the procedure step (within the proc
invoked by job step 'stepname') for which restart is to done
'checkid' is the number of the checkpoint where MVS should restart
execution. If the 'checkid' contains special characters, it must be
enclosed in apostrophes. |
For your functionality it will be
RESTART=STEP03 |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Suresh,
Try putting this in the jobcard:
RESTART=STEPx.PSTEP3,COND=(0,LE)
This executes the 3rd procstep ONLY; nothing before, nothing after.
The restart= will begin the job's execution at your procstep 3.
The COND= prevents any step in the job (except the 1st executed step) from executing if that step returns ANY RC whatsoever. |
|
Back to top |
|
|
|