FOPTNUM Function: Windows

Returns the number of information items that are available for a file.
Category: External Files
Windows specifics: information items available
See: FOPTNUM Function in SAS Functions and CALL Routines: Reference

Syntax

FOPTNUM(file-id)

Required Argument

file-id
specifies the identifier that was assigned when the file was opened, generally, by the FOPEN function.

Details

Six information items are available for files:
  • Filename
  • RECFM
  • LRECL
  • File Size (bytes)
  • Last Modified
  • Create Time
These information items are available for pipes:
  • Unnamed pipe access device
  • PROCESS
  • RECFM
  • LRECL
FOPTNUM returns the following values:
For files:
6
For pipes:
4

Example

For an example of the FOPTNUM functions, see Obtaining Directory Information.