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
Error While running dsjob utility
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 10
- Joined: Thu Jan 28, 2010 1:03 am
- Location: hyderabad
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
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?
Does the "-mode RESET" command accept parameters, is that what it is complaining about?
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant