Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Ray0801
Creator
Creator

Difference Between User Defined Routines And User Defined Functions (used in Tmap) ?

Both this terms have the same procedure and have been used interchangebly,which is quite confusing!.

 

 

 

Labels (2)
4 Replies
PhilHibbs
Creator II
Creator II

In traditional programming, "routine" and "function" are sometimes interchanged, the difference is only subtle, and in some languages nonexistent.

 

A routine is a function that does not return a value, and therefore cannot be used in an expression.

 

A function is a routine that returns a value, and therefore can be used in expressions.

 

So for a language like C or Java, where there are no true routines (only functions with a return type of void), the two terms are often used interchangeably.

Ray0801
Creator
Creator
Author

So are this both same even in the Talend Tool perspective.
TRF
Champion II
Champion II

Routines are shared within the project.
tMap functions are visible only in the tMap where they are defined.
Definitively, you can do much more things with routines.
PhilHibbs
Creator II
Creator II

Ah, you know what I didn't know about tMap functions so please disregard my history lesson in this context!