Have a need to include certain steps that pass variables depending on which Saturday of the week job is running. Need a way to handle months that have 5 Saturdays.
Component: ESP Workload Automation
Release: All Releases
Need to insert steps in a job on every Saturday of month passing different variables depending on which Saturday it is.
EXAMPLE;
Use the include statement based on the Saturdays within a month. If you simulate each Saturday, using the month that has 5 Saturdays you will see it includes the proper steps and variables passed.
%INCLUDE IF(TODAY('1ST SATURDAY WITHIN MONTH'))
// var1='1'
// var2='3'
%ENDINCL
%INCLUDE IF(TODAY('2ND SATURDAY WITHIN MONTH'))
// var1='4'
// var2='6'
%ENDINCL
%INCLUDE IF(TODAY('3rd SATURDAY WITHIN MONTH'))
// var1='1'
// var2='3'
%ENDINCL
%INCLUDE IF(TODAY('4th SATURDAY WITHIN MONTH'))
// var1='4'
// var2='6'
%ENDINCL
%INCLUDE IF(TODAY('5th SATURDAY WITHIN MONTH'))
// var1='1'
// var2='3'
%ENDINCL