Page 1 of 1

dsjob command syntax

Posted: Fri Sep 03, 2010 11:01 am
by ffillmorejr
Where can I find the complete syntax of the DSJOB command? I have spent the better part of an hour looking in the DataStage Information Center online, the Parallel Job Developers Guide, Parallel Job Advanced Developers Guide, Server Job Developers Guide. Is there a link or manual you can point me to? I want to understand all of the paramater options.

Posted: Fri Sep 03, 2010 11:56 am
by chulett
I don't have any of the 8.x documentation here now, but in the 7.x world it was all explained in the Command Line Interface chapter in either of the two "Developer Guides". I know it's in the new docs somewhere, just not sure exactly where, sorry.

Posted: Fri Sep 03, 2010 12:07 pm
by vinothkumar
Login to your Unix server (where DataStage server) is installed and go to bin directory of DataStage. Type man dsjob. It will give you the syntax.

Posted: Fri Sep 03, 2010 2:09 pm
by vinothkumar
Just type dsjob and press enter in bin directory.

Posted: Fri Sep 03, 2010 2:29 pm
by chulett
That would just give you a standard "usage statement" without the level of detail that the documentation goes into.

Posted: Sat Sep 04, 2010 8:45 am
by chulett
OK, took a drive through all of the 8.x documentation I have stashed away and came away mostly empty-handed. Here's what I found in Chapter 4 of the Server Job Developer Guide:
dsjob Command

You can use the dsjob command to call other WebSphere DataStage jobs from Command Stage. WebSphere DataStage provides the dsjob program to let you run compiled jobs from a command line instead of from WebSphere DataStage. dsjob has the following simple syntax:

dsjob -run [ -mode ] [ -param ] [ -warn ] [ -rows ] [ -wait ] [ -stop ] [ -jobstatus ] [ -userstatus ] project job

For full syntax information, see WebSphere DataStage Development Kit (Job Control Interfaces).
For whatever reason, I do not have the 'Development Kit' doc that it references. I did, however, find this older post by Len Greenwood out in the wild on another site:
Len wrote:In 8.1 these interfaces are described in the InfoCenter installed on the client - you're looking for the "WebSphere DataStage Development Kit (Job Control Interfaces)". I think in 8.0.1 it was in a chapter of the Server Job Developer's Guide - with a similar title.
Hope that helps.

Posted: Sat Sep 04, 2010 1:06 pm
by daignault
If you want to cheat on a unix system, perform a "strings" on the dsjob executable. That will show you all the parameters...including hidden ones.

strings, although included in the MKS Toolkit (part of Datastage 8) does not seem to execute as well on the Windows platform as it does on unix.

Cheers,

Ray D

Posted: Sun Sep 05, 2010 5:11 am
by sureshreddy2009
Go to unix server where datastage is installed, type man dsjob , it will display all options, but finally you have to undertand to use how like
for running a job
dsjob -file <parameter file contains domain name and server name> domainname servername -run -warn 100 projectname jobname

for seeing the list of jobs in a project
dsjob -file <parameter file contains domain name and server name> domainname servername -lj projectname

for first input projname and jobname
second one input is projectname onlylike this lot of commands are there
like to see stagenames, lnk names, log of job, job description details like this.............

Posted: Tue Sep 07, 2010 2:46 pm
by ffillmorejr
Note that the documentation referred to in the thread "WebSphere DataStage Programmer's Guide" is available via Information Server v8.1 APAR JR31951 along with a bunch of other manuals.
http://www-01.ibm.com/support/docview.w ... wg1JR31951

It can be downloaded at
http://www-933.ibm.com/support/fixcentral