Error While running dsjob utility

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
srinivasayedla
Participant
Posts: 10
Joined: Thu Jan 28, 2010 1:03 am
Location: hyderabad

Error While running dsjob utility

Post by srinivasayedla »

Hi All,
I tried to run a script in AIX , But i got an error as invalid arguments, which i have never witnessed before. can some one help me in solving this issue ?

my script is as follows,
cd /samba/Events_new
file=`ls -lrt | grep "INCOIS" | tail -1 | tr -s ' ' | cut -d ' ' -f 9`
cp -r ./$file /datastage/DS/Seismic/seiscomp3/DATA

cd /datastage/Ascential/DataStage/DSEngine
. ./dsenv

cd bin

./dsjob -run -mode RESET -param InputFileName=/datastage/DS/Seismic/seiscomp3/DATA/$file -param InvocationNumber=1 stgdev_prj SEISMIC_TEST.1

./dsjob -run -param InputFileName=/datastage/DS/Seismic/seiscomp3/DATA/$file -param InvocationNumber=1 stgdev_prj SEISMIC_TEST.1

These are the errors i got.....
Invalid arguments: dsjob -run
[-mode <NORMAL | RESET | VALIDATE
[-param <name>=<value>]
[-warn <n>]
[-rows <n>]
[-wait]
[-opmetadata <TRUE | FALSE>]
[-disableprjhandler]
[-disablejobhandler]
[-jobstatus]
[-userstatus]
[-local]
[-useid]
<project> <job|jobid>

Status code = -9999 DSJE_DSJOB_ERROR

Thanks in advance
sri
PhilHibbs
Premium Member
Premium Member
Posts: 1044
Joined: Wed Sep 29, 2004 3:30 am
Location: Nottingham, UK
Contact:

Post by PhilHibbs »

Are there any funny characters in your script? Is the '-' character a normal ASCII dash? Is the space before it a normal space? Can you dump the file in hex and see if there is anything dodgy there? Then again, I expect you copied and pasted the command, and I don't see anything odd about it.

Does the "-mode RESET" command accept parameters, is that what it is complaining about?
Phil Hibbs | Capgemini
Technical Consultant
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I'd add an echo of the runtime value for $file or of the whole command line for debugging purposes.
Post Reply