Job search query

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vikas gupta
Participant
Posts: 30
Joined: Wed Mar 24, 2004 1:28 am

Job search query

Post by vikas gupta »

Hi,

How I will find out those jobs names, which are using given column name. Suppose column name is Satus then which jobs are using this column.


Regards

Vikas Gupta
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
search this forum some code was givven to query Ds repository in hte past that might answer your need.

by the way although it might not be 100% what you need you could try using the usage analysis from DS maanger to try find all jobs using a specific table definition (but it is not a search by column name used in jobs)

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
dsxuserrio
Participant
Posts: 82
Joined: Thu Dec 02, 2004 10:27 pm
Location: INDIA

Post by dsxuserrio »

Here is a crude nonelegant way in case you just want to do it anyway.
Generate reports for all projects and store in a windows folder.
Do you search with column name in the text string.
dsxuserrio

Kannan.N
Bangalore,INDIA
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello Vikas,

In addition to what has already been suggested, you can use the reporting assistant in the manager for a detailed analysis, or even right-click on the table name (again in the manager) to get a usage report, that will tell you which job use the metadata from that table - this method works only if the column name wasn't manually entered in a design.

You can also do a full project export in either .dsx or .xml format and search within those text files for occurrences of your columns of interest; this doesn't really work well if your column name is something like "a" :lol: .
sachinkc
Participant
Posts: 34
Joined: Sat Apr 17, 2004 11:39 am
Location: USA

Post by sachinkc »

I think I've replied to a similar question before and it has been discussed a lot in this forus. Export out as XML, parse it by some XSL parser or any Javadoc kind of utility. Its very flexible this way.

- Sachin
ArndW wrote:Hello Vikas,

In addition to what has already been suggested, you can use the reporting assistant in the manager for a detailed analysis, or even right-click on the table name (again in the manager) to get a usage report, that will tell you which job use the metadata from that table - this method works only if the column name wasn't manually entered in a design.

You can also do a full project export in either .dsx or .xml format and search within those text files for occurrences of your columns of interest; this doesn't really work well if your column name is something like "a" :lol: .
Rgrds & Cheers!

Sachin
sachin@operamail.com
~Life always finds a way~
chucksmith
Premium Member
Premium Member
Posts: 385
Joined: Wed Jun 16, 2004 12:43 pm
Location: Virginia, USA
Contact:

Post by chucksmith »

You can use my Search a dsx file for a sting tool. Export your job designs, then copy the dsx file to your DataStage server. Run the tool, giving the dsx file name and column name as parameter values. The tool will give you a list of categories and jobs that include the string (your column name).

You may find the tool on the DataStage Tools page of www.anotheritco.com.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I almost posted the link for you, Chuck. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,
Do you have Metastage tool?
This will be of help for you to find out column names used in different jobs.

Ketfos
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Take a look at this viewtopic.php?t=89892 Couple of options here.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

If you use Reporting Assistant then the table is DSColumns.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

If you want to extract all the columns using a DataStage job then download DsRepository.zip on my tips page. There are dsx files in there and some setup work to make of it work but the next time you have this issue then you can get an answer a lot quicker.
Mamu Kim
trokosz
Premium Member
Premium Member
Posts: 188
Joined: Thu Sep 16, 2004 6:38 pm
Contact:

Post by trokosz »

The person indicating the use of MetaStage is right on....This will allow you to perform an impactanalysis of where columns are used in what Projects and what Jobs. In addition if you use the specific MetaBrokers to your situation (e.g,, ERwin, Business Objects, Cognos, and so on) then you can know the columns not only in DataStage Jobs but what Business Objects, for example, reports use these columns.
Post Reply