Chapter Contents

Previous

Next
FOPTNUM

FOPTNUM



Returns the number of information items that are available for an external file

Category: External File


Syntax
Details
Example
See Also

Syntax

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


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

DINFO

DOPTNAME

DOPTNUM

FINFO

FOPTNAME


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.