| SAS Component Language Dictionary |
| Category: | External File |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| num-items=FOPTNUM(file-id); |
contains the number of information items that are available.
contains the identifier that was assigned when the file was opened. If file-id is invalid, the program halts.
| Details |
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.
| Example |
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);
| See Also |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.