SAS Component Language Dictionary |
Returns the number of information items that are available for
an external file
num-items=FOPTNUM(file-id);
|
-
num-items
-
contains the number of information
items that are available.
Type: Numeric
-
file-id
-
contains the identifier that was
assigned when the file was opened. If file-id
is invalid, the program halts.
Type: Numeric
The number, value, and type of available
information items depend on the operating system.
Use FOPTNAME to determine the names of the items that
are available for a particular operating system. Use FINFO to retrieve the
value of a particular information item.
Open the external file that has the fileref
MYFILE and determine how many system-dependent file information items are
available:
fileid=fopen('myfile');
infonum=foptnum(myfile);
DINFO
DOPTNAME
DOPTNUM
FINFO
FOPTNAME
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.