Page 1 of 1

Difference in Routines and Transforms

Posted: Tue Oct 16, 2007 5:14 am
by raghu.chandra
Hi,

What is difference between Routines and Transforms.

Thanks,

Raghuraj

Posted: Tue Oct 16, 2007 5:30 am
by WoMaWil
The original difference (up to Version 3.0) was very important. Those Times a routine could not be used directly but hat to be wrapped into a Transform. Nowadays this use makes no difference. A Routine is more easy to handle. A Transform is a bit quicker. If you change a Routine and compile it it will work the way in every Job thereafter without a new compilation of the Job. For to use a changed Transform you have to recompile all Jobs where you want to use the new version.

Posted: Tue Oct 16, 2007 9:48 am
by ameyvaidya
I also suspect (But do not have enough info to confirm) that a routine could have the housekeeping overhead akin to a procedure or function call while a transform is more like a macro that is expanded inline with the actual transformer code.

Posted: Tue Oct 16, 2007 1:44 pm
by ray.wurlod
Yes it does, but it's negligible and only incurred on the first row processed.