How to Create SAS Transport Files

  1. 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;
    
  2. If you have created value label formats using PROC FORMAT; VALUE ..., output these value labels into a SAS dataset:
    PROC FORMAT CNTLOUT=format;RUN;
    
  3. Define a LIBNAME to reference the SAS Version 5 transport file engine:
    libname xp SASV5XPT "test.xpt";
    
  4. 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.

Frank E Harrell Jr
Last modified: Fri Jun 6 15:47:58 EDT 2003