I know that I can use dsjob.exe with the -ljobs command to retrieve a listing of jobs within a project, but is there any command line utility that I can use to list the categories in which jobs reside?
Thanks!
Peter
Listing of Jobs and Categories
Moderators: chulett, rschirm, roy
via TELNET, you should be able to do this, or Admin (but you require command line) so here goes:
should get what you want.
Code: Select all
logto project
SELECT NAME, CATEGORY FROM DS_JOBS
- - - - -
Cranie
Doing the needful.
Cranie
Doing the needful.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Not directly. You can query the DS_JOBS table using DataStage SQL, which can be invoked from a shell script or BAT file. For example (assuming you have an environment variable called DSHOME set to the location of the DataStage installation directory):
You can figure out how to pass poject_dir and category_name to the script and substitute a shell variable in the command.
Code: Select all
CD $project_dir
%DSHOME%\bin\dssh "SELECT NAME FROM DS_JOBS WHERE NAME NOT LIKE '\%' AND CATEGORY = 'category_name';"
Code: Select all
. $DSHOME/dsenv
here=`pwd`
cd $project_dir
$DSHOME/bin/dssh "SELECT NAME FROM DS_JOBS WHERE NAME NOT LIKE '\%' AND CATEGORY = 'category_name';"
cd $here
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.