Hi All,
I need to check whether an input file exists first; and if it exists then I can import into SAS.
But every time the name of input file will change, e.g. testing_01.xlsx, testing_02.xlsx ..., so I can only use wildcard for the filename.
But then fileexist function does not work for wildcard, so I can't use it to test existence.
Is there anyway to do it? Thanks!
Look at the the very first locked topic. at the top of the page of the programming community.
You'll see how to list files in a directory.
Details.
Are there other XLSX files in the folder? If so, how will you know which one to use?
Look at the the very first locked topic. at the top of the page of the programming community.
You'll see how to list files in a directory.
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.