DataStage 8.0 dsjob command 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
gsbrown
Premium Member
Premium Member
Posts: 148
Joined: Mon Sep 23, 2002 1:00 pm
Location: USA

DataStage 8.0 dsjob command error

Post by gsbrown »

I'm trying to get a dsjob command line executed for starting a DataStage job in 8.0

This command works....
C:\IBM\InformationServer\Server\DSEngine\bin\dsjob -server DWAPP02 -user userid -password password -run DWProd lkpbldDMDATE

This command does not work...
C:\IBM\InformationServer\Server\DSEngine\bin\dsjob -file d:\apps\signon.file DWAPP02 -run DWProd lkpbldDMDATE

And inside the signon.file I have...
DWAPP02,userid,password

What would be the difference between these two commands that causes the second command to return "Failure to locate information for server"?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not sure unless it's horked up in 8. I've used the latter syntax without issue in 7.x on a UNIX server and from memory what you posted looks correct to me. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Well, the latter syntax is working for me in V8 Linux. It's got to be something specific for the "Windows" platform.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Don't you still need the "-mode NORMAL"?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Which particular Windows platform? This might be one of those things that Windows XP does not support (though the fact that it worked pre version 8 is a bit of a poser). But version 8 is a radically different beast in any case.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
gsbrown
Premium Member
Premium Member
Posts: 148
Joined: Mon Sep 23, 2002 1:00 pm
Location: USA

Post by gsbrown »

Thanks Len, I think that might have gotten me further.
Now I'm getting this error....

Code: Select all

C:\Documents and Settings\dsiisadmin>C:\IBM\InformationServer\Server\DSEngine\bi
n\dsjob -file d:\apps\signon.file NONE DWAPP02 -run DWProd lkpbldDMDATE
ERROR: Failed to open project

Status code = -1010 DSJE_DOMAINLOGTOFAILED
I know I've got the userid/password correct, and I'm assuming I have the engine and project name correct because I can get a version of this command to work (see original post) using the same engine and project name.

I've also got a support case open with IBM on this so I may give up for now and wait on their feedback. Thanks for the responses so far!
gsbrown
Premium Member
Premium Member
Posts: 148
Joined: Mon Sep 23, 2002 1:00 pm
Location: USA

Post by gsbrown »

Replacing NONE with my actual domain DWAPP02:9080 makes this command work!

Code: Select all

C:\Documents and Settings\dsiisadmin>C:\IBM\InformationServer\Server\DSEngine\bi
n\dsjob -file d:\apps\signon.file DWAPP02:9080 DWAPP02 -run DWProd lkpbldDMDATE
Also had to make sure my signon.file contained...
DWAPP02:9080,DWAPP02,userid,password
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Thanks for posting the resolution to this.
-craig

"You can never have too many knives" -- Logan Nine Fingers
battaliou
Participant
Posts: 155
Joined: Mon Feb 24, 2003 7:28 am
Location: London
Contact:

Post by battaliou »

Yes, thanks for the resolution, on AIX 8.1 you use a similar method, with a comma separated config file. I had the added joy of setting a project defined parameter.

$ dsjob -file myfile.pas server:9080 server -run -param '$stageusr=paramuser' Project Jobname

$ cat myfile.pas
server:9080,server,user,password
3NF: Every non-key attribute must provide a fact about the key, the whole key, and nothing but the key. So help me Codd.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

I'm going to add an additional note to this, even though its resolved...

I've just found out that the case of the domain / servername must match the case returned by the "hostname" command.

For example:

$ hostname
MyServer
$

Means that you'd better have
MyServer:9080,MyServer,username, password

in the file. MYSERVER and myserver won't work!
Last edited by asorrell on Tue Nov 26, 2013 3:27 pm, edited 1 time in total.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
dsnovice
Participant
Posts: 38
Joined: Thu Jul 22, 2004 11:56 pm
Location: Mclean, VA
Contact:

Post by dsnovice »

:)
Last edited by dsnovice on Tue Aug 30, 2011 1:57 pm, edited 1 time in total.
dsnovice
Participant
Posts: 38
Joined: Thu Jul 22, 2004 11:56 pm
Location: Mclean, VA
Contact:

Post by dsnovice »

Thank you very much for posting the resolution. It worked great!!. and yes its case sensitive.
Post Reply