Write and run SAS programs in your web browser

Conversion of .xpt to .sas7bdat using SAS studio

Reply
Learner
Posts: 1

Conversion of .xpt to .sas7bdat using SAS studio

Hi,

I am trying to convert .XPT file to .sas7bdat using SAS studio 

could some one help me how to do this.

Thanks

Ka

Super User
Posts: 7,098

Re: Conversion of .xpt to .sas7bdat using SAS studio

Unless you have a pre-fabricated task in SAS Studio for this (Enterprise Guide doesn't have one), you will have to do it in code.

See Restoring Transport Files at the Target Computer

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 35

Re: Conversion of .xpt to .sas7bdat using SAS studio

Hi.

I can just know import one xpt file.

 

Step1:

Confirm your xpt file is in "FILE"

adsl.jpg

 

Step2:

libname xportin xport '/home/YOUR_ACCOUNT_OF_SASSTUDIO/adsl.xpt';
proc copy in=xportin out=work;
select adsl;
run;

 

Step3:

Finished.

adsl2.png

Ask a Question
Discussion stats
  • 2 replies
  • 447 views
  • 0 likes
  • 3 in conversation