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.
dsjob return 255
Moderators: chulett, rschirm, roy
dsjob return 255
Last edited by mrvsr on Tue Mar 18, 2008 1:29 pm, edited 2 times in total.
Thanks
MRVSR
MRVSR
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 334
- Joined: Fri Dec 01, 2006 5:17 am
- Location: Texas
-
- Participant
- Posts: 82
- Joined: Tue Jan 22, 2008 10:37 am
- Location: UK