Hi,
I am Using fileexist function to check if the a file is present in Unix location it is working fine, when I execute the code through eg or sas studio, but when I execute it through PC SAS it doesn't recognize the file.
When I use PC SAS, I get the program path and derive the file location as in accordance with the actual unix location and set it as a macro variable using SYSLPUT.
The libnames gets created perfectly with the path specified.
Even if I hard code the correct path it shows the value as 0, that the file is not present
I tried mutiple options
1.using filename reference
Filename prgconf "&path/config.csv";
%put %sysfunc(fileexist(prgconf);
2.macro variable
%put %sysfunc(fileexist(&path/config.csv);
3.direct hardcoded path
%put %sysfunc(fileexist(/infra/integ/config.csv);
but always the value is 0, how can I check the file presence, is there any other way.
Kindly help.
Thanks,
Moovendhan Devaraj
... View more