CA Workload Automation ESP Edition

Expand all | Collapse all

Help finding a variable

Jump to Best Answer
  • 1.  Help finding a variable

    Posted 01-22-2020 09:13 AM
    Good morning,

    I have a user looking to convert their DJC networks. Some on their stuff is already in ESP, and some isn't. When they are going through their events in ESP, they are finding a variable (ESPESPSADG) and have no idea what it is. Any help on finding what the value is and where it would be defined would be great. Example below:

    JOB IMSONC33
    DATASET 'CCMTOC3.IMS39.CNTL'
    RDAY = '%ESPSDD%ESPSMMM%ESPSYY'
    IMS = 'IMS33'
    IF IMS33ONC EQ RDAY THEN EXIT
    IF ¬(ESPESPSADG) AND JOBONQ('IMS33','','E') EQ 0 THEN DO
    SEND 'OPR EMSG= ##### IMS33 IS NOT ACTIVE. ESP WILL ATTEMPT' CN(18)
    SEND 'OPR EMSG= ##### RESUBMIT OF ON-LINE CHANGE IN 5 MINUTES' CN(18)
    REEXEC IN(5)
    ENDDO
    ELSE DO
    IF %DXZ4AM33 NE RDAY OR ESPESPSADG THEN DO
    SELECT (DXZ4AM33)
    PARM1 = 'ACBLIB'
    ENDDO
    IF %DXZ4FM33 NE RDAY OR ESPESPSADG THEN DO
    SELECT (DXZ4FM33)
    PARM2 = 'FMTLIB'
    ENDDO
    SELECT (IMSONC33)
    SEND 'OPR EMSG= ##### ON-LINE CHANGE NETWORK FOR IMS33 STARTED' CN(18)
    ENDDO

    ------------------------------
    Frank
    Infrastructure Analyst
    John Deere
    ------------------------------


  • 2.  RE: Help finding a variable
    Best Answer

    Posted 01-22-2020 10:06 AM

    Hi Frank,

    ESP has a variable ESPSADG:

    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/11-4/using/create-reports/generate-report-of-scheduled-workload.html

    You can also use the ESPSADG symbolic variable in a CA WA ESP Edition procedure to affect the simulation. This variable is set equal to 1 during SADGEN processing; otherwise, it is set to zero.

    You may run simulation and check how ESPESPSADG is defined, and if it's related to the above variable. Also you can add "ECHO %ESPESPSADG" and see if it shows 1 when running SADGEN and 0 for other scenarios.

    Hope this helps,

    Lucy