Chapter 8: The CIMPORT Procedure


Overview: CIMPORT Procedure

What Does the CIMPORT Procedure Do?

The CIMPORT procedure imports a transport file that was created ( exported ) by the CPORT procedure. PROC CIMPORT restores the transport file to its original form as a SAS catalog, SAS data set, or SAS data library. Transport files are sequential files that each contain a SAS data 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.

PROC CIMPORT can read only transport files that PROC CPORT creates. For information on the transport files that the transport engine creates, see the section on SAS files in SAS Language Reference: Concepts .

PROC CIMPORT 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. In such cases, PROC CIMPORT automatically converts the contents of the transport file as it imports it.

PROC CIMPORT produces no output, but it does write notes to the SAS log.

General File Transport Process

To export and import files, follow these steps:

  1. Use PROC CPORT to export the SAS files that you want to transport.

  2. If you are changing operating environments, move the transport file to the new machine by using either communications software or a magnetic medium.

    Note: If you use communications software to move the transport file, be sure that it treats the transport file as a binary file and that it modifies neither the attributes nor the contents of the file.

  3. Use PROC CIMPORT to translate the transport file into the format appropriate for the new operating environment or release.




Base SAS 9.1.3 Procedures Guide (Vol. 1)
Base SAS 9.1 Procedures Guide, Volumes 1, 2, 3 and 4
ISBN: 1590472047
EAN: 2147483647
Year: 2004
Pages: 260

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net