Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SM37 query

former_member206760
Active Contributor
0 Likes
635

Is it possible to schedule 2 programs say ZABC and ZPQR such that ZABC gets executed at 8 am in morning

and ZPQR at 9 in the night but if ZABC fails ZPQR should not be executed

Moderator message: please use more descriptive subject lines from now on.

Edited by: Thomas Zloch on Jun 7, 2010 3:57 PM

Is it possible to schedule 2 programs say ZABC and ZPQR such that ZABC gets executed at 8 am in morning

and ZPQR at 9 in the night but if ZABC fails ZPQR should not be executed

Moderator message: please use more descriptive subject lines from now on.

Edited by: Thomas Zloch on Jun 7, 2010 3:57 PM

3 REPLIES 3
Read only

Former Member
0 Likes
592

Hi

Have you tried setting up the Starting conditions when you create the background job using SM36?

Regards

Vic

Read only

ThomasZloch
Active Contributor
0 Likes
592

Would be a snap with an external scheduling tool. Without it, I think that ZPQR should be programmed to check for ZABC execution status and terminate accordingly. Else you could add a second step to ZABC that would schedule ZPQR for same day 9 pm execution if successful.

Thomas

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
592

Upon successful completion of ZABC update a custom table with some flag. In job ZPQR scan the custom table for the "success flag", if you don't get issue an error message & stop the processing.

BR,

Suhas