![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for the CMS Environment |
| 'filename filetype <filemode | SFS-directory | *>' |
'filename MACLIB'
To specify a CMS minidisk or SFS directory as an aggregate file, use the following:
| 'filemode | SFS-directory | *' |
Omitting the filename and filetype specifies an aggregate file, which consists of an SFS directory or minidisk. Files in the directory or minidisk are accessed as independent members of the aggregate file.
You cannot use an asterisk (*) for either filename or filetype.
| Aggregate External Files |
An aggregate external file is processed as a single file that contains multiple independent members. For input only, CMS MACLIBs can be specified as aggregate files. For input, update, and adding new members, an aggregate file can be an SFS directory or a CMS minidisk.
The FILENAME statement is used to specify an aggregate external file:
| FILENAME fileref 'filemode | SFS-directory | *'; |
| Concatenating External Files |
To concatenate external files or directories, use the FILENAME statement. To concatenate files that contain multiple SAS programs in order to invoke the programs in a single invocation, use the SYSIN= system option.
| Aggregate Files vs. Concatenated Files |
Aggregate files contain independent files that are processed as individual members. Concatenated files appear to SAS as a single file that contains the data of all of the files listed in concatenation. In other words, concatenated files are not independent of each other. The order of the concatenation means that files listed first in the FILENAME concatenation take precedence over files that appear later in the list.
Aggregate files can be concatenated. SAS treats an aggregate concatenation as it does any other, by searching each aggregate in turn, in order of appearance in the initial concatenation specification.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.