Chapter Contents

Previous

Next
SAS Companion for the CMS Environment

Working with SAS Files in Tape Format on Disk

In the CMS environment, SAS libraries can be stored on disk in tape format. Keep the limitations of sequential files in mind when choosing between tape format and disk format. Tape format on disk is not recommended because of the loss of functionality. For example, because the files in the SAS library cannot be randomly accessed, SAS data sets cannot be indexed nor can catalogs be used. Despite the limitation, tape-format SAS libraries can be processed by SAS under OS/390 and VSE.

As with SAS files on tape, each tape-format SAS file on disk is stored as a single file, as long as each SAS file has a unique libref. If you write multiple SAS files on disk in tape format using the same libref, they are all written to one sequential file, making access to a particular SAS file difficult.

To force tape format for a SAS library on disk, specify the sequential engine in the LIBNAME statement. The form of the LIBNAME statement to use is

LIBNAME libref TAPE <'physical-name'>;


Examples


Chapter Contents

Previous

Next

Top of Page

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