Functions and CALL Routines under OpenVMS |
Returns the number of information items available for an external
file.
Category: |
External Files
|
OpenVMS specifics: |
Available information items
|
See: |
FOPTNUM Function in
SAS Language Reference: Dictionary
|
-
file-id
-
specifies the identifier that was assigned
when the file was opened, generally by the FOPEN function.
Under OpenVMS, five information items
are available for all types of files:
-
Filename
-
Owner Name
-
Group
Name
-
Access Permission
-
File Size (bytes)
If you concatenate
filenames, then an additional information
item is available: File List.
The open-mode specified
in the FOPEN function will determine the value that FOPTNUM returns.
Open Mode |
FOPTNUM Value |
Information Items Available |
Append
Input
Sequential
Update |
6 for concatenated files
5 for single files |
All information items available. |
Output |
5 for concatenated files
4 for single files |
Because the file is open for output, the File Size information
type is unavailable. |
For an example of how to use the FOPTNUM function, see
FINFO Function: OpenVMS.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.