FOPTNUM Function


FOPTNUM Function

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

Category: External Files

See: FOPTNUM Function in the documentation for your operating environment.

Syntax

FOPTNUM ( file-id )

Argument

file-id

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

Details

Operating Environment Information: The number, value, and type of information items that are available depend on the operating environment.

Comparisons

  • Use FOPTNAME to determine the names of the items that are available for a particular operating environment.

  • Use FINFO to retrieve the value of a particular information item.

Examples

This example opens the external file with the fileref MYFILE and determines the number of system-dependent file information items available:

 %let fid=%sysfunc(fopen(myfile));  %let infonum=%sysfunc(foptnum(&fid)); 

See Also

Functions:

  • 'DINFO Function' on page 501

  • 'DOPTNAME Function' on page 505

  • 'DOPTNUM Function' on page 506

  • 'FINFO Function' on page 539

  • 'FOPEN Function' on page 550

  • 'FOPTNAME Function' on page 552

  • 'MOPEN Function' on page 656

See the 'Examples' on page 552 in the FOPTNAME Function.




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net