Chapter Contents |
Previous |
Next |
SAS Companion for the CMS Environment |
For improved performance you can create and read SAS data libraries that are stored in CMS segments. To implement SAS libraries in segments, install SAS accordingly, as specified in the installation instructions for the SAS System under CMS.
Access to a SAS library in a segment (READ-only) requires a slight modification of the usual LIBNAME statement, using the following syntax:
LIBNAME libref <engine<'segment-name'> SEGMENT=YES>; |
SAS issues a SEGMENT RESERVE command for the segment and then loads the segment with a DIAGNOSE instruction. If either command fails for any reason, the LIBNAME statement fails.
A libref that is assigned to a library in a segment receives a path name of segment-name SG. The filetype is segment-name and the file mode is SG.
Examples |
A segment named LABDATA contains a SAS library. The following example loads the library and assigns the libref LABDATA:
libname labdata segment=yes;
This next example loads a SAS library in the segment named SALEDATA and assigns the libref BOOKDATA:
libname bookdatab 'saledata' segment=yes;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.