01-18-2018 03:36 AM
I have a scenario as mentioned below
source= /sas/basesas/avancedsas/advancedsas & basesas/abc.xls
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?
01-18-2018 03:49 AM
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:
and all your problems vanish in a puff of logic smoke.
See Maxim 44 and Maxim 15.
01-18-2018 04:41 AM
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.
01-18-2018 09:13 AM
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.