Rabidwolff's Alehouse
"Your place for fun and knowledge."
HOME | Quotes | SAS | C# | BEER



Basics
FORMATS
INFORMATS
DATETIME
ATTRIB
LENGTH
FORMAT
INFORMAT
LABEL
JOINS
OPERATORS

Statements
RETAIN
FIRST.
LAST.

Procedures
PROC SORT
PROC COPY
PROC CPORT
IF ELSE
PROC REPORT

Functions
CAT
CATS
CATT
CATX

CDISC
Random Q & A

CDISC
CDISC Info

Coded Tools
XML Output
Examples

SAS Transport Files

SAS creates transport files that will compress SAS datasets, catalogs, and libraries to allow for faster moving and storage and moving across platform/enviroment. SAS transport files created between PROC COPY and PROC CPORT are not interchangable.

PROC COPY:

  • Normal naming convention for transport files should be named with the extention (*.xpt or *.xport)
  • Can go from earlier to newer or vise versa (better to use PROC MIGRATE for earlier to newer releases)
  • SAS datasets contained only (no format catalogs or other types of SAS files)
  • The MEMTYPE=DATA option is required. If left out, SAS will copy all contents of the library (including catalogs and views) which the XPORT engine does not support which will cause error and warning messages written to the log.
  • CDISC standard is to use PROC COPY
    • Use 1 xpt file per dataset
    • Labels <= 40, Variable Names <= 8, Char Variable length <= 200
Click to Show Examples:

PROC CPORT:

  • Normal naming convention for transport files should be named with the extention (*.cpt or *.cport)
  • Used to compress SAS dataset(s) and catalogs
  • Can no compress SAS views
  • Use PROC CIMPORT to uncompress the transport files
  • Can only go from an earlier to newer SAS created version
Click to Show Examples:

Rabidwolff Industries | Establisted: 10/15/2011 | Version: 4 8/4/2012 | Page Last Generatated: 9/25/2021 4:57:51 PM