How to use or call a DSRoutine

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
aschand
Participant
Posts: 57
Joined: Thu Jan 03, 2008 9:28 pm

How to use or call a DSRoutine

Post by aschand »

Hi

Can anyone please tell me how to call or Use a DSRoutine in a Datastage job.

Thanks
aschand
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: How to use or call a DSRoutine

Post by gateleys »

You call it by its name and a set of parameters, just as you would do in any other programming languages. If you mean 'where' to make the call from, it can be done from several places, eg. Derivation of a column in Transformer, before/after a stage or job, from a Routine Activity stage in a job sequence, etc.

BTW, what is the purpose of the routine that you intend to call?
gateleys
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There are different kinds of routine, including transformation function (callable from Routine Activity and server jobs), before/after subroutine (callable from job properties of server and parallel jobs and active stages in server jobs) and parallel routines (callable from Transformer stages in parallel jobs). Which do you have in mind? Parallel routines are created and compiled external to DataStage, and a descriptor is emplaced in the DataStage Repository mentioning the location and arguments of that routine so that it may be called.
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