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
 

 

Skipping the JOBs in Easytrieve Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 158
Location: India

PostPosted: Wed Jan 25, 2012 1:03 pm    Post subject: Skipping the JOBs in Easytrieve Program
Reply with quote

Hi All,

First of all thank you very much for all your support.

Currently, I have a scenario like, I have coded 6 JOB statements in an Easytrieve program.

Now my question is first JOB will create an output file, if the output file is empty I do not want to execute subsequent JOBs rather I want to exit from the program with NON zero return code.

Is there anyway to achieve this in Easytrieve?

Thanks for you kind help.

Thanks,
Sati
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Jan 25, 2012 1:08 pm    Post subject: Reply to: Skipping the JOBs in Easytrieve Program
Reply with quote

Look at the details of the STOP statement in your manual. Search/try the index for RETURN-CODE.

This should get it for you, let us know. Please post your solution to assist others in the future.
Back to top
View user's profile Send private message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 158
Location: India

PostPosted: Wed Jan 25, 2012 1:21 pm    Post subject:
Reply with quote

Hi Bill,

Thanks for you quick reply.

I tried STOP but it is stopping the first job and is executing the next subsequent jobs also.

Here I am stuck...

Thanks,
Sati
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Jan 25, 2012 1:37 pm    Post subject: Reply to: Skipping the JOBs in Easytrieve Program
Reply with quote

I didn't suggest you try STOP, I suggested you look in the manual.

If you do that, you'll find out about the full operation of STOP, including "STOP EXECUTE".
Back to top
View user's profile Send private message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 158
Location: India

PostPosted: Wed Jan 25, 2012 2:44 pm    Post subject:
Reply with quote

Hi Bill,

I used the STOP EXECUTE and it is working perfectly.

Thanks a lot.


Thanks,
Sati
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Jan 25, 2012 2:48 pm    Post subject: Reply to: Skipping the JOBs in Easytrieve Program
Reply with quote

No problem, thanks for the feedback.

Next time, read all the words in any response you get, and attempt the suggestions made (assuming they seem reasonable) :-)
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


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