DataStage Search

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
hema arvind
Participant
Posts: 26
Joined: Fri Jun 30, 2006 9:24 am

DataStage Search

Post by hema arvind »

Hi

Is there any way like we can search for a particular string from entire Jobs in all the categories of a project?
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Re: DataStage Search

Post by meena »

Hi Hema
I think it is not possible to look for a particular string.But you can look for a table or for a file.
hema arvind wrote:Hi

Is there any way like we can search for a particular string from entire Jobs in all the categories of a project?
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Look at this post viewtopic.php?t=99543
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You could also go Old Skool and export the jobs to a .dsx file and then use an editor to search the export. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can effect a SEARCH against DS_JOBOBJECTS, but would then require some knowledge of the structures used in DS_JOBOBJECTS to understand the results.

Code: Select all

SEARCH DS_JOBOBJECTS
STRING=MyString
STRING=
SELECT OBJNAME,OBJIDNO FROM DS_JOBOBJECTS ORDER BY OBJIDNO;
Last edited by ray.wurlod on Tue Sep 05, 2006 7:00 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Ray went really old school on that one.
Mamu Kim
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

I have a solution.
I don't know whether its right way of doing or not, but it works.

I read the DS_JOBOBJECTS using a Hashed File Stage and use a transformer concate the columns there and search the string in the concated column.

Till now it has worked with 100% success.

Try it. Its fast also.
Success consists of getting up just one more time than you fall.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That would work but only to a limited degree - you don't get to search the "invisible" columns - of which there can be more than 200 depending on the object type.

One solution would be to use a UV stage to select from the table. Specify only one big VarChar column, and for its derivation specify EVAL "@RECORD" (the entire data record).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply