Hi,
I inherited a program containing macro codes and saw the log message below. Can you help troubleshoot what the issue is regarding the following codes?
data _null_;
set test8 end=eof;
call symputx('Product'||left(_n_), product, 'G');
call symputx('Environment'||left(_n_), environment, 'G');
if eof then call symputx('numrows',_n_, 'G');
run;
NOTE: Numeric values have been converted to character values at the places given by:
(Line) : (Column).
1463:35 1464:35
call symputx( cats('Product',_n_) , product, 'G');
This happens because the Left Function requires a character string. If the argument is numeric, the function attempts to convert it to character before left aligning. The code below gives the same Note. Probably nothing no worry about.
data test;
set sashelp.class;
a=left(_n_);
run;
call symputx( cats('Product',_n_) , product, 'G');
Thank you! It worked!!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.