Hi experts,
I am struggling assigning a SAS libname because the url has special character '&' . The code truncates and attend to assign '\\myserver\folder1\folder2\01_' url which does not exists.
LIBNAME sample "\\myserver\folder1\folder2\01_&folder3\";
How to handle url with special characters in this case?
Thanks in advance.
OK, try:
LIBNAME sample %nrstr("\\myserver\folder1\folder2\01_&folder3\");
Bart.
If it's URL, maybe try %26
LIBNAME sample "\\myserver\folder1\folder2\01_%26folder3\";
?
Bart
OK, try:
LIBNAME sample %nrstr("\\myserver\folder1\folder2\01_&folder3\");
Bart.
The & character has special meaning for operating systems (e.g. send a command to the background in UNIX), therefore it has NO PLACE AT ALL in file or directory names. Correct that three days before yesterday.
Otherwise, simply use single quotes to prevent SAS from attempting to resolve a macro variable.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: