The
CPORT procedure writes SAS data sets, SAS catalogs, or SAS libraries
to sequential file formats (transport files). Use PROC CPORT with
the CIMPORT procedure to move files from one environment to another.
Transport files are sequential
files that each contain a SAS library, a SAS catalog, or a SAS data
set in transport format. The transport format that PROC CPORT writes
is the same for all environments and for many releases of SAS. In
PROC CPORT,
export means to
put a SAS library, a SAS catalog, or a SAS data set into transport
format. PROC CPORT exports catalogs and data sets, either singly
or as a SAS library. PROC CIMPORT restores (
imports)
the transport file to its original form as a SAS catalog, SAS data
set, or SAS library.
PROC CPORT also
converts SAS
files, which means that it changes the format of a SAS file from the
format appropriate for one version of SAS to the format appropriate
for another version. For example, you can use PROC CPORT and PROC
CIMPORT to move files from earlier releases of SAS to more recent
releases. PROC CIMPORT automatically converts the transport file
as it imports it.
Note: PROC CPORT and PROC CIMPORT
can be used to back up graphic catalogs. PROC COPY cannot be used
to back up graphic catalogs.
PROC CPORT produces
no output (other than the transport files), but it does write notes
to the SAS log.