ESP Workload Automation

 View Only
  • 1.  Using a variable in the run statement

    Posted Jan 06, 2021 03:04 PM
    Quick question,  I have an application that requires a variable to determine if it is week 1 or week 2 of a given week.  
    I tried using the run statement like below:
     RUN WEEKDAYS OF %WEEK1OF2
    RUN THU FRI OF %WEEK2OF2

    However, this doesn't work, what am I missing?

    Thanks for the help

    Elliott


  • 2.  RE: Using a variable in the run statement

    Broadcom Employee
    Posted Jan 06, 2021 03:25 PM
    Hi, 
    Is there some code that sets the variables? What do they get resolved to?  


    Don


  • 3.  RE: Using a variable in the run statement

    Broadcom Employee
    Posted Jan 11, 2021 03:25 PM

    Hi Elliott,

    I believe I have worked with you to set the two variables. 

    As you may not know, the terms on RUN statement are limited, see the doc link below:

    https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/12-0/using/use-schedule-criteria.html

    You may use below instead:

    IF %WEEK1OF2 THEN RUN WEEKDAYS

    IF %WEEK2OF2 THEN RUN FRI

    Hope this helps,

    Lucy