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

I have multiple excel file as source. Some source file having data in Semi Chinese & traditional Chinese language.

I am using below proc import code for import excel file (.xls) . For English version file it working fine but same code not working for Semi Chinese & traditional Chinese , Output coming in unreadable format. I have also selected server U8 ( In my case it is GridSASApp_U8).

%let Sheetname = “Testdata”;

Proc Import out = work.Test1

DATAFILE = “/GridPath/Source/External_trad_chinese_sample.xls”

DBMS=XLS REPLACE;

SHEET=&Sheetname.;

Run;

 

I am using SAS EG 6.1 (32-bit)

I am able to read this Chinese version file through wizard ( File  -> Import data) using server GridSASApp_U8 but I can’t use code which Auto generated by “Import data” because  Auto generated code using Dataline in  Infile statement under data step .

I have to change file location & file name based on condition.

 

Could you please suggest me that what change require in proc Import code in order to import multi language file under GridSASApp_U8 server.

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Try DBMS=XLSX or DBMS=EXCEL.

XLS would not work on Chinese,Japanese,Korean.... these double byte  character .

View solution in original post

2 REPLIES 2
Ksharp
Super User

Try DBMS=XLSX or DBMS=EXCEL.

XLS would not work on Chinese,Japanese,Korean.... these double byte  character .

anandsasbi
Obsidian | Level 7

Thanks for your reply, Now it's working after change Excel file xls to xlsx .

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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