difference between routine and a function in datastage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

difference between routine and a function in datastage

Post by uppalapati2003 »

Hi I having a dought that what is difference between a routine and a function in datastage
Srini
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Normally, a function is passed parameters and returns a value while routines are called with parameters and may change the return value of these parameters. This naming convention is broken somewhat in DataStage, as the "Routines" category actually contains functions. The only true routines you can declare in DataStage are the Before and After Subroutines, and those are hard-coded to accept only 2 parameters.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You have marked the job type as TX. Is that correct?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Plus it is in the General forum; so I assumed that both were wrong. I don't know TX - are the functions and routines in that product?

Please Note - the initial response only applies to Server and (partially) to PX.
Post Reply