Hello, I have the following SAS code: LIBNAME TESTS '/disk1/sand/SAS/workdir' ;
options mprint symbolgen;
data TESTS.SYMPUT_001_DS0;
call symputx('curr_dt',put(today(),yymmddn8.),'G');
call symput('curr_date', put('&&curr_dt&',8.));
call symputx('prev_dt',put(today()-1,yymmddn8.),'G');
call symput('prev_date', put('&&prev_dt&',8.));
curr_dt = put(today(),yymmddn8.);
curr_date = put('&&curr_dt&',8.);
prev_dt = put(today() - 1,yymmddn8.);
prev_date = put('&&prev_dt&',8.);
run;
%put &=curr_dt ;
%put &=curr_date ;
%put &=prev_date ;
%put &=prev_dt ;
data TESTS.SYMPUT_001_DS1;
set TESTS.SYMPUT_001_DS0;
length dt_num 8;
length dt_str $ 10;
dt_num = &curr_dt;
dt_str = '&&curr_date&.';
output;
dt_num = &prev_dt;
dt_str = '&&prev_date&.';
output;
if &curr_dt > &prev_dt then output;
run;
data TESTS.SYMPUT_001_DS2;
set TESTS.SYMPUT_001_DS1;
where dt_num = &curr_dt;
run; When I run it using command line SAS (9.4) on linux, I get the following errors: WARNING: Apparent symbolic reference CURR_D not resolved. WARNING: Apparent symbolic reference PREV_D not resolved Does anyone know what is wrong? Thank you, Peter.
... View more