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

How to terminate the job in Override jcl ?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Wed Sep 29, 2010 1:56 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 29, 2010 2:20 pm
Reply with quote

You only wish to run the one step - correct, or multiple steps.
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Wed Sep 29, 2010 2:43 pm
Reply with quote

Therer are multiple steps in the proc. I want to run only 1 step.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 29, 2010 2:50 pm
Reply with quote

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
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Wed Sep 29, 2010 3:00 pm
Reply with quote

I think we need to code COND=(4095,NE) in the job card to skip all other steps. Am i right?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 29, 2010 3:12 pm
Reply with quote

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
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 AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
No new posts proc step return code to override in ... JCL & VSAM 3
No new posts IEHPROGM ENQUEUE OVERRIDE JCL & VSAM 4
No new posts DB2 - TERMINATE utility DB2 5
Search our Forums:

Back to Top