Cynthia.
&COL_EXP_DT (without a number) is actually from OP's code and I revise it,then got this curious result.
And I receive these notes as yours.
When I close SAS session and re-run the code,the following is LOG.
[pre]
6
7 DATA test2;
8 set test;
9 call symput (cats('col_EXP_DT',_n_), col_EXP);
10 col_DT = symget('col_EXP_DT');
11 RUN;
NOTE: Invalid argument to function SYMGET at line 10 column 10.
col_EXP=intnx('day',today(),2) col_DT= _ERROR_=1 _N_=1
NOTE: Invalid argument to function SYMGET at line 10 column 10.
col_EXP=intnx('day',today(),10) col_DT= _ERROR_=1 _N_=2
NOTE: There were 2 observations read from the data set WORK.TEST.
NOTE: The data set WORK.TEST2 has 2 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.22 seconds
cpu time 0.05 seconds
12 %put _user_;
GLOBAL COL_EXP_DT1 intnx('day',today(),2)
GLOBAL COL_EXP_DT2 intnx('day',today(),10)
[/pre]
and maybe change it a little more.
[pre]
DATA test2;
set test;
call symput (cats('col_EXP_DT',_n_), col_EXP);
col_DT = symget(cats('col_EXP_DT',_n_));
RUN;
%put _user_;
[/pre]
then These notes will not appear again.
[pre]
18
19 DATA test2;
20 set test;
21 call symput (cats('col_EXP_DT',_n_), col_EXP);
22 col_DT = symget(cats('col_EXP_DT',_n_));
23 RUN;
NOTE: There were 2 observations read from the data set WORK.TEST.
NOTE: The data set WORK.TEST2 has 2 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.05 seconds
cpu time 0.02 seconds
24 %put _user_;
GLOBAL COL_EXP_DT1 intnx('day',today(),2)
GLOBAL COL_EXP_DT2 intnx('day',today(),10)
[/pre]
Ksharp
... View more