Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to terminate the job in Override jcl ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to terminate the job in Override jcl ?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 29, 2010 2:20 pm    Post subject:
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    Post subject: Reply to: How to terminate the job in Override jcl ?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 29, 2010 2:50 pm    Post subject:
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    Post subject: Reply to: How to terminate the job in Override jcl ?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 29, 2010 3:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts Symbolic OverRide within a 'Include' ... Sysaron JCL & VSAM 7 Thu Aug 27, 2015 10:51 pm
No new posts Help in File Tailoring services ( Ove... thesumitk TSO/ISPF 8 Wed Jun 17, 2015 12:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us