Error of excute job in command line interface

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
shiipip
Participant
Posts: 3
Joined: Mon Jan 05, 2004 3:31 am

Error of excute job in command line interface

Post by shiipip »

Hi,all
When I excute "./dsjob -run -param Path=/tmp/ testprj test" in command line interface,I get the following error message:
Error -1006?Path getting information for parameter ''

Status code = -1006?

Does anyone know what's the problem?
Thanks.
:shock:
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

rkdatastage
Participant
Posts: 107
Joined: Wed Sep 29, 2004 10:15 am

Post by rkdatastage »

Hi

Do not specify the path to the project,
but only the project name itself is enough.
DataStage knows where the project is located and doesn't need a fully qualified path. So just execute the command:


dsjob -jobinfo <project name> <jobname>

this will work

Regards
RK
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try it without the trailing slash in the pathname.

Code: Select all

./dsjob  -run  -param Path=/tmp  testprj  test
I take it that the job does have a parameter called "Path"? Case and spelling are important.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shiipip
Participant
Posts: 3
Joined: Mon Jan 05, 2004 3:31 am

Post by shiipip »

I also tried this code:
./dsjob -run -param Path=/tmp testprj test
And I get the same error message.
The parameter's name is correct.

What's the meaning of "Error -1006?"?


Thanks.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Try it with supplying the server, userid and password options.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code -1006 means that the project name can not be found. Check that it is spelled correctly and cased correctly.

Can you use the non-run options with dsjob? For example

Code: Select all

dsjob -jobinfo <projname> <jobname>
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shiipip
Participant
Posts: 3
Joined: Mon Jan 05, 2004 3:31 am

Post by shiipip »

To: Kenneth Bland
What's the syntax of dsjob with supplying the server, userid and password options? I execute the command just on the DataStage server. Why should I use server, userid and password options?

To: Ray Wurlod
After I executed this command "./dsjob -jobinfo testprj test",the result is correct and status code is zero. If I executed this job without paramemter options,the job finished without error.

Thank you very much.
Post Reply