Introduction
XPORT is the transport format of SAS, used to carry data sets between systems. SAS
describes its version 5 transport format as an open format. Files commonly use the
extensions .xpt and .stx.
Structure
SAS’s record layout for version 5 or 6 data sets says that all records are 80 bytes
long, padded with ASCII blanks. The file starts with a library header record that
begins HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!. Each member
then has its own header records, one descriptor of usually 140 bytes for every
variable, an observation header and the data records. Integers are stored in IBM
style and floating-point numbers as IBM-style doubles.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the header fields, the variable descriptor, missing values, the encoding of numbers and the later version 8 transport format.
- Viewer: the site has no viewer for this format.
Links
Software
- SAS – the statistics system whose transport format this is
- Wolfram Language – imports and exports XPORT files
Reference
- Record Layout of a SAS Version 5 or 6 Data Set in SAS Transport (Xport) Format – SAS’s technical paper
- XPORT (.stx, .xpt) – Wolfram’s format page