View previous topic :: View next topic
|
Author |
Message |
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
Hi Bill,
I used the STOP EXECUTE and it is working perfectly.
Thanks a lot.
Thanks,
Sati |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|