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
In the example above:
- The first
LIBNAMEstatement aliases the library reference (libref)
- The second
LIBNAMEstatement aliases the libref
sasxptwith the physical name of the SAS transport format file (
COPYprocedure copies one or more SAS data sets in the
IN=libref (in this case,
misc) to the
OUT=libref (in this case,
SELECTstatement specifies that only the file
job1.sas7bdatshould be included in the transport file
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
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).
Last modified on August 02, 2013.