To read an SPSS export file, issue
a LIBNAME statement that explicitly specifies the SPSS engine. In
this case, the syntax of the LIBNAME statement has the following form:
LIBNAME libref SPSS 'filename';
where:
specifies the physical
filename.
Note: If the libref appears also
as a fileref, omit
filename because SAS uses the physical filename that is associated with the
fileref.
Export files must be
created by the SPSS EXPORT command and can originate from any operating
environment. Export files must be transported to and from your operating
environment in ASCII format. If they are transported in binary format,
other operating environments will not be able to read them.
Because SPSS-X files
do not have internal names, refer to them by any member name that
you like. A common extension for export files is .por, but this extension
is not required.
SPSS can have system-missing
and user-defined missing data. When you use the SPSS engine or PROC
CONVERT, the missing values (user-defined or system-missing) are converted
to system-missing values. User-defined missing values have to be recoded
as valid values. When the data set is converted, you can use PROC
FORMAT to make the translation. For example, -1 to .A and -2 to .B.