Page 1 of 2

dsjob

Posted: Thu Feb 08, 2007 5:08 pm
by kishoreramachandran
in dsjob when I get error in param how do i find the bug

Re: dsjob

Posted: Thu Feb 08, 2007 5:09 pm
by narasimha
kishoreramachandran wrote:in dsjob when I get error in param how do i find the bug
What error do you get?

Posted: Thu Feb 08, 2007 5:09 pm
by kishoreramachandran
it tells me the line number param not found, but everything looks fine

Posted: Thu Feb 08, 2007 5:11 pm
by narasimha
Please post the exact error message, it easier to find the problem.

Posted: Thu Feb 08, 2007 5:13 pm
by kishoreramachandran
./rama1.sh[17]: -param: not found
./rama1.sh[21]: -param: not found

Posted: Thu Feb 08, 2007 5:14 pm
by chulett
Post your script.

Posted: Thu Feb 08, 2007 5:22 pm
by kishoreramachandran
/bin/ksh
DSHOME=/usr/local/Ascential/DataStage/DSEngine
export DSHOME
. $DSHOME/dsenv
$DSHOME/bin/dsjob -run \
-mode RESET \
-warn 10000 MANC pa1
$DSHOME/bin/dsjob -run \
-param '$APT_CONFIG_FILE=/usr/local/Ascential/DataStage/Configurations/node1.apt' \
-param '$APT_IMPEXP_ALLOW_ZERO_LENGTH_FIXED_NULL=""' \
-param REMOTE_SERVER="MANC2P_MR" \
-param DB_USER="kishore" \
-param DB_PASSWORD="rama123" \
-param SOURCE_TABLE_NAME="price_order" \
-param PARTITION="P0122" \
-param TARGET_TABLE_NAME="aprice_order" \
-param NZ_DATA_SOURCE="NZSQL" \
-param NZ_DB="manc_ds" \
-param NZ_SERVER="50.1.11.18" \
-param NZ_USER="manc_d" \
-param NZ_PASSWORD="mancd" \

Posted: Thu Feb 08, 2007 5:33 pm
by chulett
Must be more than that, yes? :wink:

Edit your post to fix it rather than posting it all over again.

Posted: Thu Feb 08, 2007 5:36 pm
by kishoreramachandran
i left the last line it is
-warn 10000 MANC pa1

Posted: Thu Feb 08, 2007 5:40 pm
by narasimha
It makes it confusing, you should have edited your last post.....
MANC is your Project Name and pa1 your job name right?
Just curious if you run the dsjob (outside the script) along with the other details, do you still get the error mesages.

Posted: Thu Feb 08, 2007 5:41 pm
by kishoreramachandran
when i run it from designer it is perfect, problem only with the script, the job name is pa1 and the project is MANC

Posted: Thu Feb 08, 2007 5:43 pm
by kishoreramachandran
./rama1.sh: !/bin/ksh: not found
Error running job

Status code = -2 DSJE_BADSTATE
Status code = -9999 DSJE_DSJOB_ERROR

Posted: Thu Feb 08, 2007 6:05 pm
by narasimha
kishoreramachandran wrote: Status code = -2 DSJE_BADSTATE
Status code = -9999 DSJE_DSJOB_ERROR
This means you need to recompile your job before you can run it.

Posted: Thu Feb 08, 2007 6:09 pm
by kishoreramachandran
when I compile and execute it the first resetting part gets executed but after that its giving the same error

Posted: Thu Feb 08, 2007 6:10 pm
by kishoreramachandran
the first dsjob command is ok problem with the second one only