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!!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.