Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to create a variable to use in a for loop to execute a stored procedure. The variable needs to hold the last date of every month going back one year from Today(). Is this possible?
yes.
try something like below
let vMonthdates ='';
for i=1 to 12
vMonthdates=vMonthdates &','&MonthEnd(addmonths(today(),-1*i))
next;