Execute Command Error on Folder Name with Space

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ds2000
Premium Member
Premium Member
Posts: 109
Joined: Sun Apr 22, 2007 7:25 pm
Location: ny

Execute Command Error on Folder Name with Space

Post by ds2000 »

Im trying to execute copy command in EXECUTE COMMAND stage where folder name has a space in it. Actual path is like this:
//dsserver/etl/Ftp Files/dummy.txt

Error message is as follows:

cp: "//dsserver/etl/Ftp " is a directory (not copied)
cp: Files/dummy.txt: The system cannot find the path specified.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For "long filenames" with embedded spaces you need to quote the entire thing. That or switch back to the 8.3 "short name" which more than likely is:

//dsserver/etl/FtpFil~1/dummy.txt
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply