BookmarkSubscribeRSS Feed
NJGIRL
Obsidian | Level 7

Hello, 

 

I need to change &sysencoding  from 'wlatin1' to 'UTF-8'  so that sas will keep Japanese characters 'as is ' and not change to question marks (ie ???)

Caveat : I only want to do it for one program not the entire system. 

Can anyone help me out with the code to accomplish this?

 

thanks!

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

Have you tried the inencoding= and outencodinglibname options?

Tom
Super User Tom
Super User

How are you currently running your SAS programs?

If you are created .sas files and running them from the command line then add the -encoding option to the command line.

Or better still create two different commands that you use to run SAS.  One to use WLATIN1 and another to use UTF-8.  For example on our systems we have both a sas94 and a sas94_u8 command.

 

error_prone
Barite | Level 11
If a sas workspace Server ist involved, you have to talk to the admins. They have to add a sasapp definition with using the appropriate configs.

sas-innovate-2024.png

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.

 

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
  • 3 replies
  • 883 views
  • 2 likes
  • 4 in conversation