Function return value through 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
sateeshbabu
Participant
Posts: 48
Joined: Sat Oct 22, 2005 9:56 am

Function return value through routine

Post by sateeshbabu »

Hi,

I have a requ like i need get the return value of function through routine and pass dat value to the target.

Cud anybody through some tips on this,Ihave no idea about routines.

Regards,
Sateesh.M
Plot No – B4, Jeevan Akshyay apts
8/14, 2nd Main Road, Jaya Nagar
Tambaram sanitorium,
Chennai-47.
smandepudi@gmail.com
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

To get an idea, pop open the ones that ship with the product. A double-click will reveal all, including their source code.

You'll need to write a routine to return this mysterious value and pass it back out as its Ans(wer). Call the routine in a Sequence job and any downstream Job Activity stage can easily use RoutineStageName.$ReturnValue to assign it to a Job Parameter.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply