Trigger an application to run jobs in a certain subappl without RUN Statements
Article ID: 129582
CA Workload Automation ESP Edition
How to trigger an application with jobs in a SUBAPPL to run that do not have RUN statements. You do not want the jobs with a RUN statement to execute when requesting these jobs. Also you do not want to disrupt the jobs with RUN DAILY during the regular scheduled event.
Release: Component: ESPWA
You will create a new global SUBAPPL called DAILY to cover the jobs which have RUN DAILY. Then you can add IF logic to SELECT or DELECT each subapplication depending on your requirements in the USER1 variable.
IF %USER1='' THEN DO /* This will allow jobs with RUN DAILY to execute and not the two SUBAPPLS */ DESELECT CLOSE SUBAPPL DESELECT RPTTBLS SUBAPPL ENDDO
IF %USER1='RPTTBLS' THEN DO /*This will allow jobs under SUBAPPL RPTTBLS to only run */ SELECT RPTTBLS SUBAPPL DESELECT DAILY SUBAPPL ENDDO
IF %USER1='CLOSE' THEN DO /*This will allow jobs under SUBAPPL CLOSE to only run */ SELECT CLOSE SUBAPPL DESELECT DAILY SUBAPPL ENDDO