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.
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!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.