Hi James,
much appreciated for all your time. I used the same code as you, however, when I execute my process node, I still receive the error msg that weekday(today()) is not equal to 6 (Friday)
My SAS CI version is 6.5 hotfix 01
************** Below is the process node log details
102 +%let DAYOFTHEWEEK = %sysfunc(weekday(%sysfunc(Today()))); 103 +%let THERIGHTDAYOFTHEWEEK=6; 104 +/* debug */ 105 +%put &=DAYOFTHEWEEK; DAYOFTHEWEEK=6 106 +%put &=THERIGHTDAYOFTHEWEEK; THERIGHTDAYOFTHEWEEK=6 107 +%if &DAYOFTHEWEEK ne &THERIGHTDAYOFTHEWEEK %then %do ; ERROR: The %IF statement is not valid in open code. 108 +%let MAMsg=ERROR: Today is not the right day of the week; 109 +%let MAError = 20000; 110 +%let SYSCC= 20000 ; 111 +%mastatus(&_stpwork.status.txt) ; Return Status in process 8557:
... View more