I'm Tasked to automate SAS programs on a windows task scheduler.Please note I'm a very new SAS developer.I have been reading about changing dates in program automatically There are dates on these few SAS program, which we change manually everyday and run it. Here are the situation of dates in the program: 1. Date= Today's Date. But if it is a Friday,Include dates between today(friday) and Sunday. Where Date_received=20180809(today) Where Date_received between 20180810 and 20180812 2. Date=Previous Date. But if it is Monday, Change date to Friday Date. Where Date_received=20180807 If the program run on Monday, then , Where Date_received=20180810 3.Date=Last Sunday through Saturday If the program run on Monday(say August 13), then , Where Date_received >20180805 and Date_received <20180811 I have been reading about MACROS and SAS functions. Please help me figure out , if it is better with Macros or date functions. Also, if possible, point to articles to write ( or better help me write) the Macros for these date functions. Hopefully it is the right forum im posting into..( Base SAS programming forum). -Thanks SHree
... View more