How to call a user define routine from another user define r

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
ArijitS
Participant
Posts: 24
Joined: Sat Jun 02, 2007 8:58 am
Location: Kolkata

How to call a user define routine from another user define r

Post by ArijitS »

Can any one help me how to call one user written routine from another user written routine?Ie I have a routine called CALCULATION in datastage.And i have ADDITION,SUBTRACTION routines also seperately written in Datastage routine.

Now i want to call ADDITION,SUBTRACTION routine depending upon some calculation from CALCULATION routine.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need a DEFFUN declaration for each of the routines that you wish to call. Search the forum or consult the DataStage BASIC manual for more information.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: How to call a user define routine from another user defi

Post by sachin1 »

something like this

Deffun COMNettoieFichier(A1, A2) Calling "DSU.COMNettoieFichier"
Post Reply