Chapter Contents

Previous

Next
CIMPORT

CIMPORT



Restores a transport file created by the CPORT procedure

CMS specifics: default disk file, tape device


Syntax
Details
See Also

Syntax

PROC CIMPORT <options>;


Details

The DISK option is the default for the CIMPORT procedure. Therefore, PROC CIMPORT defaults to reading from a file on disk instead of from a tape. For disk files, if the fileref SASCAT is not assigned, the default file SASCAT DATA * is searched for. If the TAPE option is specified, SASCAT is temporarily assigned to tape device 181 and is used if a tape is attached. If the tape being processed is other than 181, specify the tape device as the filename in the CIMPORT procedure or FILENAME statement. If you want to read a file from tape, you must specify the TAPE option unless you assigned SASCAT to a tape.

When reading files from tapes, you do not have to specify the DCB attributes in a SAS FILENAME statement or CMS FILEDEF command. However, it is recommended that you specify BLKSIZE=8000.

Here is an example of importing from disk a transport file that PROC CPORT created from a SAS data library on another operating environment:

libname myfile 'a';

proc cimport library=myfile;
run;

Because no INFILE= option is specified, the default disk file SASCAT DATA * is searched for and used.

Here is an example of importing from tape a transport file that PROC CPORT created from a SAS data library on another operating environment:

libname newlib 'a';

proc cimport library=newlib infile='tap3' tape;
run;

Because TAP3 is specified, SAS looks to the tape on device 183 for the SAS data sets to import. For a complete listing of symbolic names for CMS tape output devices (such as TAP3), see Symbolic Names for CMS Tape Output Devices.

In the following example, the fourth file on standard label tape attached at 181 is imported to create a Version 8 SAS library:

filename x tape 'tap1' label=sl 4;
proc cimport lib=v5 infile=x tape;
run;

See Also


Chapter Contents

Previous

Next

Top of Page

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