Routines and Subroutines

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
sumesh.abraham
Participant
Posts: 153
Joined: Thu May 11, 2006 1:52 am
Location: Bangalore

Routines and Subroutines

Post 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
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Routines and Subroutines

Post 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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply