dsjob error. Status code = -1004

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
tkbharani
Premium Member
Premium Member
Posts: 71
Joined: Wed Dec 27, 2006 8:12 am
Location: Sydney

dsjob error. Status code = -1004

Post 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.
Thanks, BK
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post 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.
Wolfgang Hürter
Amsterdam
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Re: dsjob error. Status code = -1004

Post 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?
tkbharani
Premium Member
Premium Member
Posts: 71
Joined: Wed Dec 27, 2006 8:12 am
Location: Sydney

Post 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.
Thanks, BK
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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
tkbharani
Premium Member
Premium Member
Posts: 71
Joined: Wed Dec 27, 2006 8:12 am
Location: Sydney

Post by tkbharani »

Thnks ArndW

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