Mission accomplished Don. Thank you for your help. Changing to JOBATTR REQUEST meets my need.
It doesn't look like the date format was at fault, as both YEARMMDD and MMDDYEAR work in my limited testing using your suggested JOBATTR.
IF '%ESPSYEAR%ESPSMM%ESPSDD' GT '20200301' THEN JOBATTR REQUEST
IF '%ESPSMM%ESPSDD%ESPSYEAR' GT '03012020' THEN JOBATTR REQUEST
For my understanding, I am curious why IF THEN NORUN TODAY does not work. Changing NORUN to YEARMMDD did not work either. Perhaps NORUN TODAY is not respected by ESP when demanding a job / triggering it adhoc? That's probably not it...
------------------------------
Cigna
------------------------------
Original Message:
Sent: 04-06-2020 01:36 PM
From: Don Powell
Subject: NORUN TODAY after specified date
Hi Loren,
I think the order of the date needs to change. See the line below.
IF '%ESPSYEAR%ESPSMM%ESPSDD' GT '20200301' THEN NORUN TODAY
In the example provided, 01012021 although it is next year the job would run because 01012021 is not greater than 03012020.
If you wanted it to be a REQUEST job after that date, the line would look like the one below.
IF '%ESPSYEAR%ESPSMM%ESPSDD' GT '20200301' THEN JOBATTR REQUEST
Let me know if I "missed the boat"
2¢
Don
Original Message:
Sent: 04-06-2020 01:11 PM
From: Loren Watts
Subject: NORUN TODAY after specified date
I have a job that should not execute after a certain date in the future. I want to add a statement now, so I don't have to touch the job when that date arrives.
Is this idea possible using syntax similar to what I am using in this example? My attempts with statements to get the job to bypass today are not working.
LINUX_JOB DATE_TEST
RUN WEEKDAYS
IF '%ESPSMM%ESPSDD%ESPSYEAR' GT '03012020' THEN NORUN TODAY
cmdname date
USER user1
AGENT agent1
ENDJOB
------------------------------
Cigna
------------------------------