dsjob return 255
Posted: Mon Mar 17, 2008 3:59 pm
Hi,
I am executing below unix script to run my job "test2" which is having only 2 parameters apt config file and dummy(which is not used in the job).
Job is working fine from the designer. but script is not executing.
Please correct me if I did any mistake in the script.
dshome=`cat /.dshome`;export dshome
PATH=$PATH:$dshome/bin; export PATH
. $dshome/dsenv
echo 'env set up done'
server='xxx'
user='xxxx'
pswd='xxxxx'
runinfo=`dsjob -server $server -user $user -password $pswd -run -jobstatus -parm dummy=d RMS_OFFSHR_RT test2 2>&1`
dsjobStatus=$?
echo 'job ran '
echo $runinfo
echo 'error'
echo $dsjobStatus
I am getting below out put with error 255
env set up done
job ran
Command Syntax: dsjob [-file <file> <domain> <DataStage server> | -domain <domain> -user <user> -password <password> -server <DataStage server>] <primary command> [<arguments>] Valid primary command options are: -run -stop -lprojects -ljobs -linvocations -lstages -llinks -projectinfo -jobinfo -stageinfo -linkinfo -lparams -paraminfo -log -logsum -logdetail -lognewest -report -jobid -import Status code = -9999 DSJE_DSJOB_ERROR
error
255
Please let me know how to resolve this.
I am executing below unix script to run my job "test2" which is having only 2 parameters apt config file and dummy(which is not used in the job).
Job is working fine from the designer. but script is not executing.
Please correct me if I did any mistake in the script.
dshome=`cat /.dshome`;export dshome
PATH=$PATH:$dshome/bin; export PATH
. $dshome/dsenv
echo 'env set up done'
server='xxx'
user='xxxx'
pswd='xxxxx'
runinfo=`dsjob -server $server -user $user -password $pswd -run -jobstatus -parm dummy=d RMS_OFFSHR_RT test2 2>&1`
dsjobStatus=$?
echo 'job ran '
echo $runinfo
echo 'error'
echo $dsjobStatus
I am getting below out put with error 255
env set up done
job ran
Command Syntax: dsjob [-file <file> <domain> <DataStage server> | -domain <domain> -user <user> -password <password> -server <DataStage server>] <primary command> [<arguments>] Valid primary command options are: -run -stop -lprojects -ljobs -linvocations -lstages -llinks -projectinfo -jobinfo -stageinfo -linkinfo -lparams -paraminfo -log -logsum -logdetail -lognewest -report -jobid -import Status code = -9999 DSJE_DSJOB_ERROR
error
255
Please let me know how to resolve this.