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)