Hi all,
I have several SAS datasets I need to convert to XPT files.
The files are currently SAS7BDAT files. Example: adae.sas7bdat
The files were originally created in Japanese.
I using the following code to create the XPT files but not having success.
You need to use proc cport or libname XPTLIB xport "&path";
The message states that the encoding used to create the files should match the SAS session encoding, or the session can't properly recognise some characters.
Run this to see your session encoding:
proc options group=languagecontrol; run;
If you won't or can't change the session encoding, you could try using the INENCODING= and OUTENCODING= libname options to copy these files while respecting their encoding.
I am unsure this would work.
Another pointer: Asian languages might require the CVS libname read engine when being used in a latin encoding session. I am also unsure as I never had to deal with Asian languages.
Do SAS XPORT format files support UTF8? DBCS?
But your main problem is you need to set your SAS session in a mode that can READ the SAS dataset.
I would start by making sure you are running using Unicode support.
If you can't get that to work try running SAS using DBCS.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.