Transform vs Routine

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
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Transform vs Routine

Post by snassimr »

Hi !

Does anybody can explane advantages and disatvanges using transform insteasd of routine . What difference between their using in Derivation Field ?

Thanks .
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

A transform is a 1-line function that is actually replaced in the job, a routine is a separate function call that is compiled and stored elsewhere.

If you change a transform then you need to recompile any jobs that use it. If you change a routine you only need recompile it once and the new version will be used by all jobs that call it.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Search for more on this, but specify Transform with a capital "T".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

Thank you all.

I did some check and really using transform and its more faster then routine. But writing any derivation on place without calling transform or routine te fastest way.
ArndW : The call to transform replaces with the code after compilation ?

Ray : People confuse Transform and Transformer and its difficult ot find somthing specific about transform. Did you succeed with another string search ?
rkdatastage
Participant
Posts: 107
Joined: Wed Sep 29, 2004 10:15 am

Post by rkdatastage »

The basic difference between a Transform and a Routine is
Transform is a inline function which is having one line of code
where as a routine is multiple line of code function

both are reusable

RK
Post Reply