Hello,
I have a program that has a label that is using a small right arrow. When I run the program through sas manually it runs fine with no errors. I check the properties on the table and look for the variable and label shows the small right arrow.
When I run the following code it gets to the the variable with the right arrow and stops. It says that the "DATA STEP running" but nothing is happening.
proc printto log="C:\temp\test.log" new ; run ; %inc "C:\temp\test.sas" /source2 ; proc printto ; run ;
When I cancel submitted statement and go to the log file it is stopped at that variable and the label go to the character right before the right arrow.
My question is why it works if I just run the program, but doesn't when the program is included and proc printto is wrapped around it?
I think it is an encoding issue but I'm not sure how to correct this without having to do it manually and I can't do that because there could be many files to update.
I was able to figure it out by adding the encoding option to the include statement
proc printto log="C:\temp\test.log" new ; run ; %inc "C:\temp\test.sas" /encoding="utf-8" source2 ; proc printto ; run ;
I was able to figure it out by adding the encoding option to the include statement
proc printto log="C:\temp\test.log" new ; run ; %inc "C:\temp\test.sas" /encoding="utf-8" source2 ; proc printto ; run ;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.