Fetch Column derivation for all Active stages

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
jayanthkaliappan
Participant
Posts: 4
Joined: Thu Feb 28, 2008 4:35 am
Location: top

Fetch Column derivation for all Active stages

Post by jayanthkaliappan »

Im reiterating the problem we have faced when fetching metadata from active to passive stage.

Call DSGetLinkMetaData(Result,JobName,stgname,stglinkname)
WriteSeq "the deriavtion is:":Result<9,k> To FileVar
Stg1------>Transformer1----->Transformer2-------->Stg2
There are three links link1, link2 and link3.
I can able to fetch link2 columns and its derivation from Transfomer1 usingDSGetLinkMetaData.
For Transformer2 i am unable to fetch the columns and its derivation for link3.
If we need to get the columns of link3, we can fetch it from Stg2.
However i need to fetch column and its derivation for all transformer.
Please help me in getting the derivations for Transformer2.
Last edited by jayanthkaliappan on Mon Feb 23, 2009 4:25 am, edited 1 time in total.
HI
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How many columns are actually defined on that link?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jayanthkaliappan
Participant
Posts: 4
Joined: Thu Feb 28, 2008 4:35 am
Location: top

Post by jayanthkaliappan »

nearly upto 40 columns are there in that link? Please advice.
HI
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How many fields are actually returned in the dynamic array?

Code: Select all

DCount(Result,@FM)
What's happening in the eighth field? You talk about the first seven, then the ninth? I'm wondering why.

What is the source of the column definitions on this link? Hashed file or some other source that uses positional addressing rather than name-based addressing?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jayanthkaliappan
Participant
Posts: 4
Joined: Thu Feb 28, 2008 4:35 am
Location: top

Post by jayanthkaliappan »

ray.wurlod wrote:How many fields are actually returned in the dynamic array?

Code: Select all

DCount(Result,@FM)
What's happening in the eighth field? You talk about the first seven, then the ninth? I'm wond ...

"The column derivation has been retireved for the first transformer which has single output link. In the second transformer the output has two links. The two output links column derivation returns empty."
HI
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That statement does not address any of my questions.

How many fields are in the Result dynamic array?

I'd also like answers to my other questions, but you will need premium membership to read those.

Do you have ANY idea what you are doing?
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