- If any of the datasets you are exporting are not already in the
WORK library, copy them to there:
PROC COPY IN=mylib OUT=WORK; SELECT test1 test2; RUN;
- If you have created value label formats using PROC FORMAT;
VALUE ..., output these value labels into a SAS
dataset:
PROC FORMAT CNTLOUT=format;RUN;
- Define a LIBNAME to reference the SAS Version 5 transport
file engine:
libname xp SASV5XPT "test.xpt";
- Copy all needed datasets to, e.g., test.xpt:
PROC COPY IN=work OUT=xp;SELECT test1 test2 format;RUN;
DO NOT use PROC CPORT to create the file.