dsjob Command with "-wait" option
Posted: Tue Jan 03, 2017 11:29 pm
I am calling dsjob command with"-wait" option from a shell script but it seems, the dsjob command just triggers the job and does not wait for the Job to finish.
Below is the Syntax I am using within the shell -
Script triggers the Job and leaves a warning message for the -wait option.
Below is message from the Shell output -
line 52 is the line number where this dsjob command is written.
Additional Info - I have checked in $DSHOME/bin path using the command dsjob -h and it doesn't show -wait option there but when I try this by writting an incomplete command like dsjob -run, it shows the dsjob syntax which includes -wait option.
Below is the Syntax I am using within the shell -
Code: Select all
DSCMD=/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob
$DSCMD -run -wait -param <Parameters> <ProjectName> <Jobname>
Below is message from the Shell output -
Code: Select all
./ScriptName.ksh: line 52: Waiting: command not found
Additional Info - I have checked in $DSHOME/bin path using the command dsjob -h and it doesn't show -wait option there but when I try this by writting an incomplete command like dsjob -run, it shows the dsjob syntax which includes -wait option.