Hi all,
Need some help with the below statement:-
Last_rundate is today()-1;
run_day = weekday(&last_rundate);
I've been trying to figure out what the above does for the past day now, i know it looks to see if run_day is sunday, if so then make "sunday" = last sundays date... its just the part after i dont understand.
thanks
Shenn
Need some help with the below statement:-
Code:
if run_day = 1 then sunday=&last_rundate-7;
else sunday = intnx('week.2',&last_rundate,-2,'end');
Last_rundate is today()-1;
run_day = weekday(&last_rundate);
I've been trying to figure out what the above does for the past day now, i know it looks to see if run_day is sunday, if so then make "sunday" = last sundays date... its just the part after i dont understand.
thanks
Shenn