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]
------------------------------
Original Message:
Sent: 10-19-2021 05:56 PM
From: Loren Watts
Subject: TASK TO TRIGGER SAME APPL NEXT MONTH
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