View previous topic :: View next topic
|
Author |
Message |
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Hi,
I would like to run a particular step of a proc using override jcl. After the step the job should end. Further steps should not run.
Below is my code. Please let me know what statement i need to include to stop the job after STEP02A.
// EXEC TESTPROC
//STEP02A.INFILE DD DSN=HLQ.LLQ.TESTFIL1,
// DISP=SHR
// |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You only wish to run the one step - correct, or multiple steps. |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Therer are multiple steps in the proc. I want to run only 1 step. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, we couldn't have you searching the forum on your own, could we, and as I am in such a good mood, I will give you some clues.
If you only want to run one step, then use step restart to start the PROC from that step.
You can then use COND=(0,LE) to omit any other steps within the PROC. But, if you read the JCL reference manual carefully with regard to condition code checking, you will only need to code the COND= parameter once within the job rather than for all subsequent steps.
Good luck. |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
I think we need to code COND=(4095,NE) in the job card to skip all other steps. Am i right? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
That would probably do it, but ............................
What happens if your step actually does give a return code 4095
I usually use a condition that will always be true.
COND=(0,LE)
zero will always be less than or equal to any return code issued. |
|
Back to top |
|
|
|