Yes. Change the code so it does not cause that note/warning.
If there is a syntax error you should see in the LOG the code with underlines below it showing what part of the code is generating that note. If not then you probably will see notes about trying to convert strings to numbers.
So what code is on line 520 of your program? What statement/function call starts at column 35?
Example:
1233 data test;
1234 set sashelp.class;
1235 x = sex*name;
1236 run;
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
1235:6 1235:10
NOTE: Invalid numeric data, Sex='M' , at line 1235 column 6.
NOTE: Invalid numeric data, Name='Alfred' , at line 1235 column 10.
Name=Alfred Sex=M Age=14 Height=69 Weight=112.5 x=. _ERROR_=1 _N_=1
So on line 1235 this program is trying to treat SEX and NAME as if they had NUMERIC values. So SAS happily tried to convert M and Alfred to numbers, but it couldn't.
So the fix is not to treat character variables as numbers. If the character variable has a value that could be a number then convert it yourself using the appropriate informat.
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.