Schedule an event only on last day of month if a Sunday

Document ID : KB000117433
Last Modified Date : 11/10/2018
Show Technical Document Details
Is there a way to schedule a job on the last day of the month only if it is a Sunday?
Yes. Using a JavaScript to check if is the last day, and if it is Sunday. Such an example of JavaScript would be:

if ((today('last day of month')) && (today('sunday'))) {
APPL.RUNME = true;
else {
APPL.RUNME = false;

You would then define the APPL.RUNME variable as a run statement on the jobs/appl level and schedule the event on the last day of the month.