Create table from data stored in SAS XPORT format file
data = xptread
data = xptread(filename)
[data,missing] = xptread(filename)
data = xptread displays a dialog box for selecting a file, then reads data from the file into a table. The file must be in the SAS XPORT format.
data = xptread(filename) retrieves data from a SAS XPORT format file filename. The XPORT format allows for 28 missing data types, represented in the file by an upper case letter, '.' or '_'. xptread converts all missing data to NaN values in data. However, if you need the specific missing types then you can recover this information by specifying a second output.
[data,missing] = xptread(filename) returns a nominal array, missing, of the same size as data containing the missing data type information from the xport format file. The entries are undefined for values that are not present and are one of '.', '_', 'A',...,'Z' for missing values.
xptread(...,'ReadObsNames',true) treats the first variable in the file as observation names. The default value is false.
xptread only supports single data sets per file. xptread does not support compressed files.