BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jerry898969
Pyrite | Level 9

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.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jerry898969
Pyrite | Level 9

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 ;

View solution in original post

1 REPLY 1
jerry898969
Pyrite | Level 9

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 ;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1035 views
  • 0 likes
  • 1 in conversation