BookmarkSubscribeRSS Feed
hosein
Calcite | Level 5

Hello all,

 

Actually, I am a beginner using SAS. I face an error/warning when I want to download some data from WRDS (Wharton Research Data Services). 

 

This is the error that I get:

 

"WARNING: The client session encoding shift-jis is not compatible with the server session encoding latin1. Data may not be transmitted correctly."

 

I tried to change SAS session encoding but it was not successful. 

 

Is there anyone here who knows how should I deal with this problem?

 

 

 

Here is the simplest version of the code that I use:

 

*****************************************************************************************************************

libname Mycrsp "C:\Users\H\Documents\My SAS Files\9.4\WRDS";

 

%let wrds = wrds.wharton.upenn.edu 4016; options comamid = TCP remote=WRDS;
signon username=_prompt_;

 

rsubmit;
libname WRDScrsp '/wrds/crsp/sasdata';
PROC SQL;
create table k as
select PRC
from WRDScrsp.dsf
where permno='14593';
quit;


proc download data=k out=Mycrsp.dsf;run;
endrsubmit;

*****************************************************************************************************************

 

Best,

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

It seems like your SAS session uses Japanese encoding. 

Try starting it with encoding wlatin1 .

See here http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm

hosein
Calcite | Level 5

I tried to change encoding by editing "sasv9.cfg" file but I cannot save it. An error appears telling that I need a permission to make any changes.

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
  • 2 replies
  • 1018 views
  • 0 likes
  • 2 in conversation