How to use Before/After Stage Routine in the Transformer

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Madhu1981
Participant
Posts: 69
Joined: Wed Feb 22, 2006 7:49 am

How to use Before/After Stage Routine in the Transformer

Post by Madhu1981 »

Hi,

I have written a before/after server routine. I want to use this routine in the stage level. Can any one tell me, on which stage i can use this before stage routine.

Shall i use this serverr routine in Transformer(PX) stage.

Kindly help me
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you use the routine in a BASIC transformer stage in PX it will get executed on every row of the data and will slow down the job. If you use it at the job level of a PX job it will only get executed once.

What is your server routine supposed to be doing?
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

You cannot use px transformer to call server routine. You need to use basic transformer to call server routine.
Madhu1981
Participant
Posts: 69
Joined: Wed Feb 22, 2006 7:49 am

Post by Madhu1981 »

Hi Arnd,

Is there any parellel stage where i can call my server routine as before stage routine.


Kindly Help me
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No, there are no parallel stages that will allow you to call server routines. They exist in completely different environments and are not compatible that way. You can only use a server routine from a BASIC transform stage in PX.
Post Reply