Page 1 of 1

Routines and Subroutines

Posted: Tue Sep 25, 2007 12:13 am
by sumesh.abraham
Hi All,

What are all the differences between routines and subroutines? As far as my understanding is concerned, both are a collection of BASIC statements which performs some logic. Routines will be called when the job runs and in the case of subroutines, these can be called before or after the job run. Please clarify.

Thanks,
Sumesh

Re: Routines and Subroutines

Posted: Tue Sep 25, 2007 12:24 am
by sachin1
Subroutines do not return a value,Not available in expressions.When designing a job you can specify a subroutine to run before or after the job, or before or after an active stage.

Posted: Tue Sep 25, 2007 12:37 am
by ray.wurlod
Routines in DataStage server job is a class that includes before/after subroutines and transform functions.

Put another way, Routines is the name of the root node in the Repository in which before/after subroutines and transform functions are stored.

At least prior to version 8.