DSExecute fail on special character
Posted: Thu Oct 14, 2004 3:33 am
Hi, all
i'm trying to write a routine which will output some of the values to a file in sun solaris system.
At command prompt i've tested echo "(" >> test2.sh successfully append into test2.sh
but it fails if i use DSExecute.
The first command in my code suceed but the 2nd one failed.
Is there anyone faced the same problem that can advise?
i'm trying to write a routine which will output some of the values to a file in sun solaris system.
At command prompt i've tested echo "(" >> test2.sh successfully append into test2.sh
but it fails if i use DSExecute.
The first command in my code suceed but the 2nd one failed.
Code: Select all
command = " echo set heading off >" :ScriptF
Call DSExecute("UNIX", command, Output, SystemReturnCode)
command = "echo exec DATASTAGE_TEST_SP " :'"' : "(" : "'": '"':Trim(Param1) : '"': "'": '" ,:x "' : ")" : '">>' :ScriptF
Call DSExecute("UNIX", command, Output, SystemReturnCode)