Returns the value of a file information item.
Category: | External Files |
See: | FINFO Function: Windows in SAS Companion for Windows |
FINFO Function: UNIX in SAS Companion for UNIX Environments | |
FINFO Function: z/OS in SAS Companion for z/OS |
is a numeric constant, variable, or expression that specifies the identifier that was assigned when the file was opened, generally by the FOPEN function.
is a character constant, variable, or expression that specifies the name of the file information item to be retrieved.
data info;
length infoname infoval $60;
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;