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!!
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: