Indiana University
University Information Technology Services
What are archived documents?

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.


In SAS, how do I create a transport data set file?

SAS transport data set files are machine-independent files that let you move SAS data sets between computers running different operating systems. You can directly read SAS transport data set files with several statistical software packages (e.g., SPSS and BMDP).

Following is sample SAS code that copies an SAS data set file (job1.sas7bdat) to an SAS transport data set file (~/outdata/portable.xpt):

LIBNAME misc '~/work'; LIBNAME sasxpt XPORT '~/outdata/portable.xpt'; PROC COPY IN=misc OUT=sasxpt; SELECT job1; RUN;

In the example above:

  • The first LIBNAME statement aliases the library reference (libref) misc to the ~/work directory.

  • The second LIBNAME statement aliases the libref sasxpt with the physical name of the SAS transport format file (~/outdata/portable.xpt).

  • The COPY procedure copies one or more SAS data sets in the IN= libref (in this case, misc) to the OUT= libref (in this case, sasxpt).

  • The SELECT statement specifies that only the file job1.sas7bdat should be included in the transport file ~/outdata/portable.xpt .

Note: The filenames and pathnames in the above example follow Unix conventions. If you use SAS for Windows, use the appropriate Windows filename and pathname conventions. For example, in SAS for Windows, the two LIBNAME statements in the above example would instead be:

LIBNAME misc 'c:\work'; LIBNAME sasxpt XPORT 'c:\outdata\portable.xpt';

For more about using SAS, see the UITS Research Analytics SAS page and the following tutorials:

If you have questions about using statistical and mathematical software at Indiana University, email UITS Research Analytics (formerly known as the Stat/Math Center). Research Analytics is located on the IU Bloomington campus at Woodburn Hall 200, and is open for consultation by appointment Monday-Friday 9am-5pm. For more, visit Research Analytics on the web, or call 812-855-4724 (IUB) or 317-278-4740 (IUPUI).

This is document aevb in domain all.
Last modified on August 02, 2013.

I need help with a computing problem

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

I have a comment for the Knowledge Base

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.