hi,
i have the following error problem and would like someone help with it.
19 Data Run_dates;
20 Mrg = 1;
21 Run_Model_Date = &Last_Month;
_
22
WARNING: Apparent symbolic reference LAST_MONTH not resolved.
22 Run_Date = &First_Month;
_
22
WARNING: Apparent symbolic reference FIRST_MONTH not resolved.
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,
a missing value, INPUT, PUT.
23 do While (Run_Date <= Run_Model_Date);
24 Output;
25 Run_Date = intnx("MONTH", Run_Date , 1, 'END');
26 end;
27 Format Run_Date date9.;
28 Keep Mrg Run_date;
29 run;
A thing like &name is a symbolic reference in SAS. Symbolic references are replaced by their values when the program is executed. Thus, to run your program you must first define &Last_Month and &First_Month with statements :
%let First_Month='01JAN2012'd;
%let Last_Month='31DEC2012'd;
PG
A thing like &name is a symbolic reference in SAS. Symbolic references are replaced by their values when the program is executed. Thus, to run your program you must first define &Last_Month and &First_Month with statements :
%let First_Month='01JAN2012'd;
%let Last_Month='31DEC2012'd;
PG
thanks very much. it did work.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.