BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
reubens
Calcite | Level 5

Please help (if indeed there is a solution)

 

I’m running a proc import (see 21.sas)

I'm using SAS 9.4 (unicode support), which I need to use to ensure my data files are consistent in their encoding.

 

However, the proc import shows the British pound symbol as a question mark with a black diamond around it.

 

Can you please help with resolving the proc import command to show the data the correct currency symbol?

 

reubens_0-1695921986353.png

 

[Note: Using SAS9.4 (english) will import the british pound currency just fine]

 

I look forward to your response.

 

Attached is a small CSV file with my proc import code

 

cheers,

Reuben

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

For one, do never use PROC IMPORT for csv files; you are MUCH better off writing the DATA step yourself.

 

Second, I suspect that your csv file was created in a single-byte environment, and you should use the ENCODING= option of the INFILE statement, most probably with a value of WLATIN1.

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

For one, do never use PROC IMPORT for csv files; you are MUCH better off writing the DATA step yourself.

 

Second, I suspect that your csv file was created in a single-byte environment, and you should use the ENCODING= option of the INFILE statement, most probably with a value of WLATIN1.

reubens
Calcite | Level 5

thanks you so much Kurt for the quick reply and solution

Perfect, that works great!

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 787 views
  • 0 likes
  • 2 in conversation