Category: | External Files |
UNIX specifics: | Information items available |
See: | FOPTNAME Function in SAS Functions and CALL Routines: Reference |
data fileatt;
length name $ 20 value $ 40;
drop fid j infonum;
filename mypipe pipe 'UNIX-command';
fid=fopen("mypipe","s");
infonum=foptnum(fid);
do j=1 to infonum;
name=foptname(fid,j);
value=finfo(fid,name);
put 'File attribute' name 'has a value of ' value;
output;
end;
run;