External job definition:
APPL distant
JOB xjob EXTERNAL APPL(cyberapp) SCOPE(-01.00) ...
Application is scheduled at 19.00. Job xjob readied at 17.42, and completed at 18.39, but is not satisfied.
Release : 12.0
Component : CA ESP WORKLOAD AUTOMATION
On an EXTERNAL job, the SCOPE interval must include the start and the completion of the recorded job.
When the distant application starts at 19.00, SCOPE(-1.00) looks back 1 hour (18.00 - 19.00) for job start and complete.
ESP did not find a match because the job started at 17.42.
Extend the SCOPE interval to cover the job start time, or used the SCHEDULED parameter.
Ex: JOB xjob EXTERNAL APPL(cyberapp) SCHEDULED('YESTERDAY')
or
JOB xjob EXTERNAL APPL(cyberapp) SCHEDULED('19.00 YESTERDAY')
The SCHEDULED parameter was developed after SCOPE, and has some advantages over SCOPE:
- It uses the event schedule time. Ex: SCHEDULED('19.00 TODAY') means that ESP only matches with the event that scheduled at 7 PM today.
- If the job is late for submission or completion, and another generation of the same application is triggered, you will end up having multiple jobs completion. SCHEDULE('criteria') tells ESP explicitly which schedule to match.