Chapter Contents

Previous

Next
CPORT

CPORT


Writes SAS data sets and catalogs into a special format in a transport file

CMS specifics; specification of transport file


Syntax
Details
See Also

Syntax

PROC CPORT <options>;


Details

The CPORT procedure writes SAS data sets and catalogs into a transport format. Coupled with the CIMPORT procedure, PROC CPORT enables you to move catalogs and data sets from one operating environment to another. If you do not use the FILE= option and have not defined the reserved fileref SASCAT, a file named SASCAT DATA is created on the first R/W-accessed disk, as in the following example:


libname myfile 'a';

proc cport library=myfile;
run;

Here is an example with an assigned filename, which creates the transport file PORT FILE M:


libname myfile 'a';

proc cport library=my file='port file m';
run;

The following example uses the FILE= option to create the transport file OUT FILE on the first read/write accessible disk:


libname myfile 'a';

proc cport library=myfile file='out file';
run;

If TAPE is specified, SASCAT will be temporarily assigned to the tape and output will occur if a tape is attached. If you want to write to a file on tape, you must either specify TAPE in the FILE= option or assign the fileref SASCAT to a tape device. It is recommended that you specify BLKSIZE=8000.

In the following example, SASCAT is assigned to the second file on tape device 181:


filename sascat tape 'tap1' blksize=8000 label=sl 2;
libname myfile 'a';

proc cport lib=myfile;
run;
See Symbolic Names for CMS Tape Output Devicesfor a list of symbolic names for CMS tape output devices.

The following example uses the FILE= and the TAPE options to create a transport file on tape device 183:


libname myfile 'a';

proc cport library=myfile file='tap3' tape;
run;

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.