Page 1 of 1

Error of excute job in command line interface

Posted: Tue Nov 08, 2005 2:08 am
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:

Posted: Tue Nov 08, 2005 2:20 am
by loveojha2

Posted: Tue Nov 08, 2005 4:31 am
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

Posted: Tue Nov 08, 2005 4:39 am
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.

Posted: Tue Nov 08, 2005 7:06 pm
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.

Posted: Tue Nov 08, 2005 7:07 pm
by kcbland
Try it with supplying the server, userid and password options.

Posted: Wed Nov 09, 2005 2:36 am
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>

Posted: Thu Nov 10, 2005 2:32 am
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.