Page 1 of 1

dsjob error. Status code = -1004

Posted: Thu Mar 06, 2008 4:25 am
by tkbharani
Dear All
I am trying to run a simple job through dsjob in unix. The job is not having any parameters. When I run through dsjob I am getting an error.
In Dev Guide -1004 responds to "job compilation" .I tried after compilation,still geting an error.
Command:
------------
bin/dsjob -run ric_dss_dev Job_UsingColumnGenerator
Error:
------
ERROR: Failed to open job

Last recorded error message =
(DSOpenJob) Cannot find job Job_UsingColumnGenerator

Status code = -1004

When I run the same through director its successfully getting completed.

Posted: Thu Mar 06, 2008 4:38 am
by WoMaWil
might be a user-right-problem.

try first other dsjob command-parameters like -ljobs

if this works further steps have to be proceeded to analyze the reasons.

Re: dsjob error. Status code = -1004

Posted: Thu Mar 06, 2008 4:49 am
by ArndW
bin/dsjob -run -mode NORMAL ric_dss_dev Job_UsingColumnGenerator

what does bin/dsjob -ljobs ric_dss_dev show? Is "Job_UsingColumnGenerator" in the list?

Posted: Thu Mar 06, 2008 4:57 am
by tkbharani
I got more information
We have got two Datastage installed in same server 7.1 server and 7.5 PX.
I am into PX server path U10/PX/ds7.5/Ascential/DataStage/DSEngine
From there I am using bin/dsjob.
I used bin/dsjob -ljobs ric_dss_dev, but this gives me all my server jobs created in different mount points. I am not getting Parallel jobs,thats why my job is not running.
Do I have to change any settings.

Posted: Thu Mar 06, 2008 5:02 am
by ArndW
If you have 2 instances of DataStage running on the same machine you will have to use the server name and port number in your dsjob command so that it know which engine to go to.

i.e. dsjob -server Mybox:31540 -user me -password secret -run -mode NORMAL ric_dss_dev Job_UsingColumnGenerator

Posted: Thu Mar 06, 2008 5:12 am
by tkbharani
Thnks ArndW

ITs working. I gave the following command.
bin/dsjob -server <servername:port> -user <user> -password <pwd> -run <projectname> <job_name>