In my code I am trying to use the passthrough to Teradata with SAS to automate a report. This automation i have defined dates. in my Proc SQL using the Teradata passthrough i refer to the CW_START and CW_END dates for a weekly report. However this doesnt work in the passthrough even though I formatted the dates as YYMMDD10. Not sure what I am doing incorrectly here so any pointers would help immensely. Thank you! Data DATES; Format CW_START CW_END REPORTDATE CURR_REPT_DATE YYMMDD10.; REPORTDATE = today()-1; CURR_REPT_DATE = today(); CW_START = intnx('Week.4',ReportDate,0,'B'); CW_END = intnx('Week.4',ReportDate,0,'E'); Call Symput('REPORTDATE',REPORTDATE); Call Symput('CW_START',CW_START); Call Symput('CW_END',CW_END); Call Symput('CURR_REPT_DATE',CURR_REPT_DATE); run;
... View more