dsjob -run error

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
vishu19aug
Participant
Posts: 39
Joined: Mon Feb 13, 2012 1:30 pm

dsjob -run error

Post by vishu19aug »

Hi,

I am running the following from a datastage sequence (because i don't have access on dsadm) -

/opt/app/ibm/InformationServer/V87/Server/DSEngine/bin/dsjob -run -mode NORMAL -param -warn 0 -rows 0 -wait -jobstatus /opt/app/ivrr/shared/projects/xxx_dev1 JobNightly_SubSeq2

it fails with the following error -

Reply=255
Output from command ====>
Invalid arguments: dsjob -run
[-mode <NORMAL | RESET | RESTART | VALIDATE>]
[-paramfile <filename>]
[-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
can somebody please help? what is wrong here? iam new to unix.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

[-param <name>=<value>]

Either pass a name/value pair or don't include the "-param" if you don't need to pass a parameter. Also, use either -wait or -jobstatus, not both.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vishu19aug
Participant
Posts: 39
Joined: Mon Feb 13, 2012 1:30 pm

Post by vishu19aug »

if i don't include -param .. get the same error :(
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Options -wait and -jobstatus are mutually exclusive, you can have one or the other or neither, not both.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

But using both doesn't cause an error from what I recall, just confusion. Can you post the current version of your dsjob command and the latest error you are getting?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try using a project name rather than a project pathname.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

D'oh! Didn't notice that. :cry:
-craig

"You can never have too many knives" -- Logan Nine Fingers
vishu19aug
Participant
Posts: 39
Joined: Mon Feb 13, 2012 1:30 pm

Post by vishu19aug »

I removed the path from the project name and run the following -
/opt/app/ibm/InformationServer/V87/Server/DSEngine/bin/dsjob -run -mode NORMAL -warn 0 -rows 0 xxx_dev1 JobNightly_Dynamic_Lookups

getting the following error -

Output from command ====>
ERROR: Failed to open project
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Now you need to add the credentials to access the project - userid, password, domain.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vishu19aug
Participant
Posts: 39
Joined: Mon Feb 13, 2012 1:30 pm

Post by vishu19aug »

If i run this from command line under dsadm .. do i still need to provide the credentials. I guess the credentials would be of dsadm?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to provide the credentials of whichever userid you want the job to run under.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply