![]() Chapter Contents |
![]() Previous |
![]() Next |
| FILENAME |
| Valid: | anywhere |
| OS/390 specifics: | fileref, device-type, physical-filename, host-options |
Syntax |
FILENAME
fileref <device-type>
|
|
| FILENAME fileref | _ALL_ CLEAR; |
| FILENAME fileref | _ALL_ LIST; |
You can specify device-type in two ways: either specify it between the fileref and the file specification in the FILENAME statement or use the standard file option UNIT= to specify it. (See Standard File Options for the FILENAME Statement.) If you specify device-type in both ways, the UNIT= option takes priority. If you do not specify a device type or UNIT value for a new file, SAS uses the current value of the SAS system option FILEDEV=.
'myid.raw.datax'
'sas.raw.data(mem1)'
'.raw.data'
'.raw.data(mem1)'
'.raw.data(mem*)'
'.raw.data(*mem1)'
'.raw.data(*)'
'&mytemp'
'/u/userid/raw'or
'HFS:raw'
The value of the FILEEXT= system option can affect the way SAS interprets file specifications for PDS and PDSE files. See FILEEXT= for details.
The value of the FILESYSTEM= system option can also affect the way SAS interprets filenames. See FILESYSTEM= for details.
See Specifying Physical Files for more information about partially qualified data set names.
| Standard File Options for the FILENAME Statement |
Standard file options provide information about a data set's disposition and physical attributes. The following standard options can be used with all external files under OS/390 except for files that are in the Hierarchical File System of UNIX System Services. (See Host-Specific Options for UNIX System Services Files .)
For a new data set, the default is CATLG. For an existing data set, the default is KEEP.
Here are some examples of the DISP parameter:
DISP=SHR DISP=(NEW,CATLG) DISP=(OLD,UNCATLG,DELETE)
| CONTIG | means that the allocated space must be contiguous. |
| MXIG | means that the maximum contiguous space is required. |
| ALX | means that different areas of contiguous space are needed. |
Here are some examples of the SPACE parameter:
SPACE=(CYL,10) or SPACE=(CYL,(10,,10),,CONTIG) SPACE=(1024,(100,50,20),RLSE,MXIG,ROUND)
SPACE=(FILEUNIT,(FILESPPRI, FILESPSEC,FILEDIRBLK))
The default specifications are as follows:
See OS/390 JCL Reference by IBM for complete information about how to use the SPACE= option.
If VOLSER= is not specified, its value is taken from the SAS system option FILEVOL=.
label=(3,SL,,,EXPDT=1998/123)
| DCB Attribute Options |
The following section
describes DCB options that can be used
in the FILENAME statement. For additional information about DCB characteristics,
see Overview of DCB Attributes.
The following DCB options can be used in the FILENAME statement for all types of external files under OS/390, except for files that are stored in the directory structure of UNIX System Services. (For information about options that are available for UNIX System Services files, see Host-Specific Options for UNIX System Services Files .) These options correspond to the DCB parameters that you would specify in a JCL DD statement.
You can use the OPT value of the FILEBLKSIZE(device-type)= option to tell SAS to calculate the optimal block size for nonprint files. (See FILEBLKSIZE(device-type)=.) Or you can calculate the block size yourself:
In each case, if you are writing the data set to disk, compare the block size to the track size for the disk. A block cannot be longer than one track of the disk device on which it is stored, and the operating environment does not split a block between tracks. Make sure that the block size does not leave a large portion of the track unused. (If you are not sure, consult your computing center staff.) See Optimizing I/O for information about determining the optimal block size for your data.
| F | fixed length records, unblocked. |
| V | variable length records, unblocked. |
| FB | fixed length records, blocked. |
| VB | variable length records, blocked. |
| U | undefined length records, unblocked. |
The following values can be appended to the RECFM= values:
The next format stands alone; no other values may be appended.
| N | indicates that the file is in binary format. The file is treated as a byte stream; that is, line boundaries are not recognized. This record format is specific to the SAS System. |
Values for these attributes are kept in each of the following operating environment control blocks:
| Attribute | DISK | TAPE | PRINT/ SYSOUT | TERMINAL | DUMMY | |
|---|---|---|---|---|---|---|
| RECFM | FB | FB | VBA | V | FB | |
| LRECL | 80 | 80 | 260 | 261 | 80 | |
| BLKSIZE | * | ** | 264 | 265 | * | |
| *The smaller of the SAS
system option FILEBLKSIZE(device-type)= value and the output device maximum, rounded down to
a multiple of the LRECL.
**The smaller of the SAS system option FILEBLKSIZE(device-type)= value and 32,760, rounded down to a multiple of the LRECL. |
||||||
| Options That Specify SMS Keywords |
| LIBRARY | indicates that the data set is a PDSE. |
| PDS | indicates that the data set is a PDS. |
DSNTPE= is valid only for SMS data sets, and is valid only when DSORG=PO.
| KS | VSAM key-sequenced data set |
| ES | VSAM entry-sequenced data set |
| RR | VSAM relative-record data set |
| LS | VSAM linear-space data set |
| SYSOUT Data Set Options for the FILENAME Statement |
The following options apply to data sets that are sent to a system output device (usually a printer). The default value is usually the value that was specified by your site as the installation default. See Writing to Print Data Sets , as well as your IBM JCL reference, for more information about print data sets.
| Subsystem Options for the FILENAME Statement |
| Options for UNIX System Services Files and Pipes |
Several options can be specified in the FILENAME statement for files and pipes that are in the Hierarchical File System of UNIX System Services. For information about these options, see Accessing UNIX System Services Files .
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.