Variable number of parameters when calling a routine

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
gpbarsky
Participant
Posts: 160
Joined: Tue May 06, 2003 8:20 pm
Location: Argentina

Variable number of parameters when calling a routine

Post by gpbarsky »

Hi my friends......

I need to know if it is possible to pass a variable number of parameters when calling a routine.

Sometimes I can use from 1 to 8 parameters and it would be good, that my routine can handle this situation.

Thanks in advance, and happy new year !!!
:wink:
Guillermo P. Barsky
Buenos Aires - Argentina
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You have to pass all parameters. Perhaps you should change the routine to take one delimited string as the parameter and then you could parse out whatever number were sent inside the routine?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please mark this thread as Resolved using the green button at top.
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