· Thanks for your explanation. I assumed this way. Number of days between 01/01/1960 to 08/14/2012( todays date) = 19219 %sysfunc(mod(%sysfunc(today()),7))= mathematically mod(19219,7)= 4 so the statement (%sysfunc(mod(%sysfunc(today()),7))= mathematically mod(19219,7)= 3) is not true . So, the macro is not saying hai today. But, first monday in August 2012 is on 08/06/2012 Number of days between 01/01/1960 to 08/06/2012 = 19211 %sysfunc(mod(%sysfunc(today()),7))= mathematically mod(19211,7)= 3 so this above one is true but the other logical statement %if %sysfunc(day(%sysfunc(today())))<=7 which is also true.(since day(today()) on 08/06/2012 is 6 which is less than 7) so the macro said hai on 08/06/2012 and is going to say hai on first monday of every month. I say thankful for all your(@Arthur) explanation. Correct me If I was wrong. thanks.
... View more