Creating delay in a transformer ?

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
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Creating delay in a transformer ?

Post by ady »

Can we set a delay for a transformer so that other stages are executed before it?

<a href="http://img356.imageshack.us/my.php?image=contrie1.jpg" target="_blank"><img src="http://img356.imageshack.us/img356/8336/contrie1.th.jpg" border="0" alt="" /></a> Click on the thumbnail

In the job in the screen shot above, I want to execute the link collector(circled red) before the transformer (circled black).

Is it possible ?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Not possible. Just split the job into two jobs. First job does the link collector part and the second one does the bottom part.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure... possible. :wink:

Land the output of DSLink_50 to a flat file, then pick it back up from there before going on to Mr Black Circle.

ps. Be careful of the popups on that site, I just got one of those bogus 'Security' warnings. :roll:
-craig

"You can never have too many knives" -- Logan Nine Fingers
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

And that's because a sequential file has to be written completely before the processing proceeds to the next link.

Great Solution. Craig !
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

:D , Yeah I think that would do it .... I got abt 100 colums to copy+paste now . is there any other stage i can use to save all the time ?

I'm gonna do the copy+paste anyway now
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not need to copy & paste unless you are a masochist. All your metadata is there, why not just 'Save' then 'Load' inside the Sequential File stage? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

You need not copy and paste each of the 100 columns.

Just add a seq. file stage to DSLink_50 and save the meta-data on the input tab. Now load this saved metadata to the output tab of the seq.file. You are done !

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Ahh !!! My slow fingers :x
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

Didnt know that :( ! ..... I just typed everything. Anyways...

After i inserted the seq file the first time everything was fine , i got the perfect row count. But from the second run it gives the row count as 0.

Hmm ....
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

I just removed the transformer after the link collector. , It works like magic again !! :D

I'll give it few more runs and let you guys know.
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

beaditya wrote:Didnt know that :( ! ..... I just typed everything. Anyways...

After i inserted the seq file the first time everything was fine , i got the perfect row count. But from the second run it gives the row count as 0.

Hmm ....
Which row count? Which Link? Being elaborate helps !
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

I was counting the output row count of "l_to_x" going from the linkcollector to the transformer. I gave the count function in the transformer x_ORA.

Now that i removed the transformer the job is working perfectly, there is a considerable delay.

Another issue solved @ DSX .... thnx
Post Reply