Hi,
I need to create a lot of subfolders in a directory. They will always be the final folder in a branch of the directory and always have the same name, eg:
Folder1/Folder2/test
Folder1/Folder3/test
Folder1/Folder4/Folder5/test
I was thinking there must be a way to automate this in SAS. I would know how to set it up by hand or even providing the beginning of the path and just automating the addition of test, but I was thinking there is probably a way that I can do it using just the umbrella folder (Folder1) and let SAS figure out the rest. Am I correct in thinking this? What is the best way to set this up so it's as automated as possible?
Have you seen this post?
It doesn't do the nested loops but I'm 99% certain there's code for that on here already.
https://blogs.sas.com/content/sasdummy/2013/07/02/use-dlcreatedir-to-create-folders/
@Walternate wrote:
Hi,
I need to create a lot of subfolders in a directory. They will always be the final folder in a branch of the directory and always have the same name, eg:
Folder1/Folder2/test
Folder1/Folder3/test
Folder1/Folder4/Folder5/test
I was thinking there must be a way to automate this in SAS. I would know how to set it up by hand or even providing the beginning of the path and just automating the addition of test, but I was thinking there is probably a way that I can do it using just the umbrella folder (Folder1) and let SAS figure out the rest. Am I correct in thinking this? What is the best way to set this up so it's as automated as possible?
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.