Dear community,
I am working on a macro to copy a directory along with all of its content (in SAS EG on a server if relevant) and the issue is that some directories/files have very weird names. Particularly, one of them is named something like "text;text;;*';*" (without double quotes). So to process it correctly I've tried to use %str() function like this:
%let dir_name=%str(text;text;;*';*);
but the last 3 symbols (after the second *) are identified as a comment. I don't get any error but later I can't run any code due to unmatched quotes. Which is another issue because I can't fix it (I tried running the following but it doesn't help:
; *'; *"; );
Returning to the original problem I've found the following workaround:
%let dir_name=%str("text;text;;*';*");
But it is possible that one of the folders/files will contain a double quote resulting in unmatched quotes again. Any suggestions?
Thank you in advance!
... View more