Hi All,
I have a scenario as mentioned below
OS UNIX
source= /sas/basesas/avancedsas/advancedsas & basesas/abc.xls
destination=/one/two/three
I need to do a file transfer in sas eg 5.1 using x commands from source to destination.
Kindly suggest how to mask " & " values while performing FTP using X commands?
Using "&" in a pathname in a UNIX system is REALLY BAD, as the & character has very special meaning to the operating system.
Name your path like this:
/sas/basesas/avancedsas/advancedsas_and_basesas
and all your problems vanish in a puff of logic smoke.
See Maxim 44 and Maxim 15.
No it's not possible to make a change, please let me know in case of any alternatives
It's always possible to correct a mistake. In this case, the mistake is so egregious that making the change is not only possible, but mandatory.
Keeping that & in the pathname along with the blanks is an exercise in stupidity.
The X command expects the command itself to be in quotes. If you use single quotes instead of double quotes, that automatically masks all macro references.
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 25. 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.