Hi Team, i have an issue here in looking for a date variable in list of date variables in sas. i need to run a code based on condition. %let Daily_Dm_Load_Date =%SYSFUNC(INTNX(day,%SYSFUNC(TODAY())-1,0),date9.); %let ds_dt =%SYSFUNC(INTNX(day,%SYSFUNC(TODAY()),0),date9.); %put &Daily_Dm_Load_Date(1Sep2020); %put &ds_dt.; Proc sql; select distinct(dm_load_date) format date9. into: CS_ds_DMdates SEPARATED BY "," from DM.CS_90DAY_DETAILS; quit; %put &CS_ds_DMdates.(25Aug2020,31Aug2020); %macro Appnd ; options mprint mlogic symbolgen compress=yes; /*delete and replacing Old data*/ %if %sysevalf( "&Daily_Dm_Load_Date "d ne &CS_ds_DMdates.) %then %do; %put "it is not in the list"; %else %do; %put "it is not in the list"; %end; %mend ; %appnd; i want to look the "Daily_Dm_Load_Date " in "CS_ds_DMdates". can anyone help me on this.
... View more