Trigger an application to run jobs in a certain subappl without RUN Statements
search cancel

Trigger an application to run jobs in a certain subappl without RUN Statements

book

Article ID: 129582

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

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.

Environment

Release:
Component: ESPWA

Resolution

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