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 ;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.