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!!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.