Help using Base SAS procedures

Conversion of .xpt to .sas7bdat

Accepted Solution Solved
Reply
Contributor
Posts: 64
Accepted Solution

Conversion of .xpt to .sas7bdat

Hi Everyone,

Any data step or procedure that .xpt file can be taken from system environment to sas environment.

Example:

i have vsn.xpt file in my D;\ drive.

I have to import it to my sas library as dataset.

Thanks in advance..


Accepted Solutions
Solution
‎09-27-2013 09:57 AM
Respected Advisor
Posts: 3,799

Re: Conversion of .xpt to .sas7bdat

Posted in reply to DR_Majeti

All Replies
Super Contributor
Posts: 543

Re: Conversion of .xpt to .sas7bdat

Posted in reply to DR_Majeti

You can try something like this:

proc cimport data = data_out infile='d:\vsn.xpt';

run;

quit;

Good luck.

Anca.

Contributor
Posts: 64

Re: Conversion of .xpt to .sas7bdat

Posted in reply to AncaTilea

Hi Anca,

Thank you.

I have got a message error : Cimport cannot read the Xport file (something related like this.. don;t remember exact thing)

i will try it and let you know..

Solution
‎09-27-2013 09:57 AM
Respected Advisor
Posts: 3,799

Re: Conversion of .xpt to .sas7bdat

Posted in reply to DR_Majeti

Looks like you need XPORT engine.

Moving and Accessing SAS(R) 9.2 Files

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 1492 views
  • 3 likes
  • 3 in conversation