Good afternoon,
I need to put contidions in a call symput to avoid problems due to 'saturday' and 'sunday'.
I try with this but it's not quiet correct:
data _null_ ;
call symput('giorno',compress(put(today()-0 , DOWNAME. ))) ;
run;
%put 'giorno =' &giorno.;
data _null_;
gg= '&giorno.';
if gg eq 'Monday' then call symput('data_estrazione_3',compress(put(today()-3 ,date9.)));
else
call symput('data_estrazione_3',compress(put(today()-1 ,date9.)));
run;
%put data_estrazione_3= &data_estrazione.;
Please, can you help me?
Thanks, Tecla
... View more