I need to create a directory structure through my SAS program.
I was looking at DCREATE function.So, suppose I've to create a directory structure C:\DAG\SAS\Tests, from what I understand from the documentation is, I have to iteratively create each of the folders DAG,SAS and then Tests with 3 separate calls for DCREATE. Is this correct?
Or, if there is any other function that takes the whole path C:\DAG\SAS\Tests and creates the whole directory structure, can someone please point me to that?
Though, with known issue of mkdir, when there is a space in a folder name,
say for example C:\DAG\Unit Test, then the mkdir will not work as expected.
But putting double quotes around the folder name will work like mkdir "C:\DAG\Unit Test"
I was not able to figure out how to have double quotes around the folderName parameter in the macro..
I want to change the line in macro
filename pipmkdir pipe "mkdir &folderName";
filename pipmkdir pipe "mkdir "&folderName" "; (I tried this, didn't work)
Is there any escape character for having double quotes in a string?