AnsweredAssumed Answered

Concat variable at the command of command

Question asked by s.gissel on Oct 30, 2018
Latest reply on Oct 30, 2018 by FrankMuffke

Hello community,


I am getting crazy about a simple concatination of a variable to the end of a command.


The command is inside process and die variable is set by the previous job in the jobplan (which works with set / pset).


The command is a simple cURL command calling a xml API.

curl -s -H "Content-Type: text/xml" -d '<Envelope><Body><ImportList>XML CONTENT....</ImportList></Body></Envelope>'


See the &JSESSIONID# I am trying to attach.


The report says following:

[...]./agents/unix/linux/bin/../temp/JABLBYKG.TXT: line 4: JSESSIONID#: command not found


I have simular jobs where I call a shell script an pass arguments like:

SET &ABC# = 'myserver'

./serverdirectory/ &ABC#

which works. But there is a whitespace in between.


Already tried to escape the = character but did not work.


Thanks very much in advance - you help me a lot.