BookmarkSubscribeRSS Feed
zhangmushi
Calcite | Level 5

I have a series of xpt files which have chinese character in . I want convert those files to .sas7bdat format , but i found that it will create disorder code in converted sas files , so how can I solve this problem?

3 REPLIES 3
zhangmushi
Calcite | Level 5

*here is my code;

libname xp xport "D:\Biosdata\xpt\ae58.xpt";

proc copy in=xpt out=work; run;

ChrisNZ
Tourmaline | Level 20

What does the LOG say?

How was the XPT file created?

What's your SAS session encoding?

zhangmushi
Calcite | Level 5

Well , thanks for the reply . There is no warning or error in log. These XPT files were send by CRO , so I do not know how  these files were created, and my session encoding is UTF8. Now my manager is contacting with CRO company,hope we can find the reason why.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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