FINFO Function


FINFO Function

Returns the value of a file information item

Category: External Files

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

Syntax

FINFO ( file-id , info -item )

Arguments

file-id

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

info-item

  • specifies the name of the file information item to be retrieved. This is a character value.

Details

FINFO returns the value of a system-dependent information item for an external file. FINFO returns a blank if the value given for info-item is invalid.

Operating Environment Information: The information available on files depends on the operating environment.

Comparisons

  • FOPTNAME determines the names of the available file information items.

  • FOPTNUM determines the number of system-dependent information items available.

Examples

This example stores information items about an external file in a SAS data set:

 data info;        length infoname infoval ;        drop rc fid infonum i close;        rc=filename('abc','  physical-filename  ');        fid=fopen('abc');        infonum=foptnum(fid);        do i=1 to infonum;        infoname=foptname(fid,i);        infoval=finfo(fid,infoname);        output;     end;     close=fclose(fid);  run; 

See Also

Functions:

  • 'FCLOSE Function' on page 519

  • 'FOPTNUM Function' on page 553

  • 'MOPEN Function' on page 656




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