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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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: