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,777

Re: Conversion of .xpt to .sas7bdat


All Replies
Super Contributor
Posts: 543

Re: Conversion of .xpt to .sas7bdat

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

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,777

Re: Conversion of .xpt to .sas7bdat

Looks like you need XPORT engine.

Moving and Accessing SAS(R) 9.2 Files

☑ This topic is SOLVED.

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

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