Search for string on designer canvas

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
Rob4732
Premium Member
Premium Member
Posts: 66
Joined: Mon Oct 06, 2008 5:14 pm

Search for string on designer canvas

Post by Rob4732 »

Hello All,

I have a seq job that contains several hundred stages. I want to search the canvas(not the repository or dsx) for object names containing that string(or partial string). Resulting in a visual location on the canvas showing where those objects are.

Anyone know if this can be done?

Thanks
We don't see things as they are;
We see them as we are.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Interesting idea... Can it be done? Not that I'm aware of.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Rob4732
Premium Member
Premium Member
Posts: 66
Joined: Mon Oct 06, 2008 5:14 pm

Post by Rob4732 »

I will suggest this feature at this year's IBM insights conference. At least developers in the future will benefit.
We don't see things as they are;
We see them as we are.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Meanwhile you can query the DS_JOBOBJECTS records for that particular job number.

Code: Select all

SELECT * FROM DS_JOBOBJECTS
WHERE JOBIDNO = (SELECT JOBNO FROM DS_JOBS 
                 WHERE NAME = '<<Job name>>')
AND EVAL "@RECORD" LIKE '%<<string>>%';
This query can be run from a dssh shell or, if you have DataStage Administrator role, from the Command window of the Administrator client.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

Till a more elegant solution is available ... a query to determine stage location on DS Designer Canvas is:

Code: Select all

Select J.DSNAMESPACE_XMETA Server_DSProject, 
       J.CATEGORY_XMETA Category, 
       J.NAME_XMETA JobName, 
       D.STAGELIST_XMETA,
       D.STAGEXPOS_XMETA,
       D.STAGEYPOS_XMETA,
       D.STAGEXSIZE_XMETA,
       D.STAGEYSIZE_XMETA
       D.LAZYLOADINFO_XMETA 
  From XMETA.DATASTAGEX_DSJOBDEFC2E76D84 J, 
       XMETA.DATASTAGEXDSDESIGNVIEWC2E76D84 D 
Where J.XMETA_REPOS_OBJECT_ID_XMETA = D.XMETA_LOCKINGROOT_XMETA 
 And J.NAME_XMETA = <JobName>;
Stage attributes information for multiple stages is stored in pipe-delimited format in same field .... Stage-names can be parsed from LAZYLOADINFO_XMETA and corresponding locations from STAGEXPOS_XMETA and STAGEXPOS_XMETA.

Top-leftmost position on canvas is 0,0 (STAGEXPOS and STAGEYPOS). Each grid-block has size of 24 units.
i.e A stage with STAGEXPOS = 240, STAGEYPOS = 360 is 10 grid-blocks from leftmost-position and 15 grid-blocks from top.
Rob4732
Premium Member
Premium Member
Posts: 66
Joined: Mon Oct 06, 2008 5:14 pm

Post by Rob4732 »

Interesting. I will give it a try.

Thanks
We don't see things as they are;
We see them as we are.
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

Rob4732 wrote:I will suggest this feature at this year's IBM insights conference.
At IBM Insight, what is the correct forum for giving such suggestions?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

rkashyap wrote:At IBM Insight, what is the correct forum for giving such suggestions?
There isn't one. That's not what IBM Insight conference is about. Use the standard enhancement request mechanism.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

That's right. IBM will ask you to submit a Request For Enhancement (RFE) on the RFE web site. Link not handy at the moment, but you can search for it!

Here is an indirect link to the RFE site:

http://www-01.ibm.com/support/docview.w ... wg21662699
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply