Previous Topic: System Management and Normal Maintenance

Next Topic: Synchronizing Local and Remote Databases

Dependent Jobs Relying on a Single Condition

You can use a postfunction to create a conditional situation between two jobs. For example, after Job A completes, and if a single condition is met, you want Job B to execute.

If you want a dependent job to run only after one specific ending condition from the main function, use a simple DCL procedure similar to the following:

$ IF NSCHED_STATUS .EQ. the-condition-you-want
$ THEN
$ EXIT 1
$ ELSE
$ EXIT 0
$ ENDIF