ESP Workload Automation

 View Only
  • 1.  TASK TO TRIGGER SAME APPL NEXT MONTH

    Posted Oct 19, 2021 05:57 PM
    I've been given a scheduling requirement to have an appl trigger the same appl on a specific date the following month.
    The original generation can be any date of any month, but the next gen needs to be on the 18th day of the following month.
    I know what I typed below is NOT the correct statement, but it's a place to start.
    Is there a way to have a task in an appl trigger the event as I described.

    JOB TRIG_APPL_FOR_NEXT_MONTH TASK SELFCOMPLETING
    RUN ANYDAY
    ESPNOMSG TR %TREVENTS.%ESPAPPL. RESET DELAYSUB('08.00 18TH DAY OF NEXT MONTH')
    ENDJOB


  • 2.  RE: TASK TO TRIGGER SAME APPL NEXT MONTH

    Broadcom Employee
    Posted Oct 19, 2021 11:32 PM
    Does this fulfill your needs?

    JOB TRIG_APPL_FOR_NEXT_MONTH TASK SELFCOMPLETING

     RUN ANYDAY
     ESPNOMSG TRIGGER %ESPUSER..%ESPAPPL +
      AT('08.00 18TH DAY OF MONTH STARTING TODAY PLUS 1 MONTH') +
      REPLACE
    ENDJOB

    Using this technique, the next scheduled execution of the trigger for the application will be set to the required value



  • 3.  RE: TASK TO TRIGGER SAME APPL NEXT MONTH

    Posted Oct 20, 2021 09:34 AM
    Can the scheduling criteria be at the Event Level?

    As long as the Event exists it will run every month.

    By adding the Trigger statement in the Job, if the Job or Proc were completed - nothing would run in the future.



    EVENT ID(SCHTESP.TESTTRIG) SYSTEM(MSTD) REPLACE
    SCHEDULE 18TH DAY OF EACH MONTH STARTING THU 18TH NOV 2021

    NEXT 12 SCHTESP.TESTTRIG
    SCHED AT 00.00.00 ON THURSDAY NOVEMBER 18TH, 2021
    SCHED AT 00.00.00 ON SATURDAY DECEMBER 18TH, 2021
    SCHED AT 00.00.00 ON TUESDAY JANUARY 18TH, 2022
    SCHED AT 00.00.00 ON FRIDAY FEBRUARY 18TH, 2022
    SCHED AT 00.00.00 ON FRIDAY MARCH 18TH, 2022
    SCHED AT 00.00.00 ON MONDAY APRIL 18TH, 2022
    SCHED AT 00.00.00 ON WEDNESDAY MAY 18TH, 2022
    SCHED AT 00.00.00 ON SATURDAY JUNE 18TH, 2022
    SCHED AT 00.00.00 ON MONDAY JULY 18TH, 2022
    SCHED AT 00.00.00 ON THURSDAY AUGUST 18TH, 2022
    SCHED AT 00.00.00 ON SUNDAY SEPTEMBER 18TH, 2022
    SCHED AT 00.00.00 ON TUESDAY OCTOBER 18TH, 2022

    ------------------------------
    [JobTitle]
    [CompanyName]
    [State][Country]
    ------------------------------



  • 4.  RE: TASK TO TRIGGER SAME APPL NEXT MONTH

    Posted Oct 21, 2021 09:04 AM

    Thank you for helping me and for your time Rick R. No, your idea won't meet the requirement. This appl will only run twice yearly, but the first run is not scheduled for a date. I'm going to try the idea by Chris_Elvin  in this discussion.

    First run of the year, the appl will initially be triggered by the event WOB file. That can be any day of any month.

    The 18th of the month trigger needs to come after the original gen was triggered by the WOB.

    And the second trigger must be for the 18th of the following month

    Example 1: WOB sees the file October 7th. ESP triggers and runs the appl October 7th. The next generation must be triggered for NOVEMBER 18th.  
    Example 2: WOB sees the file October 21st. ESP triggers and runs the appl October 21st. The next generation must be triggered for NOVEMBER 18th.  




  • 5.  RE: TASK TO TRIGGER SAME APPL NEXT MONTH

    Posted Oct 21, 2021 09:05 AM
    @Chris_Elvin  Your suggestion looks promising Chris. Thank you for your time and help. I'll try it in the next couple days and update this discussion.