I'm relatively new to SAS and very new to Macros, so please forgive me if this is a basic question, but I haven't been able to find answers elsewhere that have worked for me. Basically, I have a SAS program that runs every weekday, but I need it to run a different series of steps on regular business days than it does on company holidays. I have an organizational dataset that includes the date and an indicator variable if that date is a company holiday (1 = yes, 0 = no). In terms of logic, I want the code to do the following:
%LET Holiday_Macro
%If &Holiday_Macro = 1 %THEN %DO;
/*Insert holiday program here*/
%ELSE %DO;
/*Insert business day program here*/
But I'm struggling to define "Holiday_Macro" appropriately. In effect, it would need to take the day's date and the holiday indicator into account, but I haven't been able to figure out how to do that. Any input would be greatly appreciated!