I am looking for a way to verify that a PC file (e.g. test.csv) exists before I attempt to read it into my process through a data step. The obstacle is that I am not able to use the FILEEXISTS function as the my company has disabled users' ability to use CMD line operations (per corporate policy). I am hoping that someone else has an alternative method to accomplish the same objective.
Thank you in advance for your consideration.
Michael
The SAS FEXIST function doesn't require OS command line access.
Why would FILEEXISTS() not work because of the NOXCMD option?
It seems to work for me.
1 %put %sysfunc(getoption(xcmd)); NOXCMD 2 %put %sysfunc(fileexist(~/autoexec.sas)); 1
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.