Calling an Oracle Function

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
ithirak_17
Participant
Posts: 17
Joined: Mon Sep 10, 2007 3:24 am

Calling an Oracle Function

Post by ithirak_17 »

Hi all,
To call a oracle procedure we can use the Stored procedure stage,Like i need to call the Oracle function? how it is possible i will pass the value to the function from the file ???? I am using datastage 7X parallel..

Please Help me out......
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome.

How would you call an Oracle function outside of DataStage? The same answer applies inside a job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

As Craig points out, You can use it the same way you do in your SQL.
For instance you can have a database stage with this query:

Code: Select all

Select myschema.myfunction(myarguments...) from dual;
IHTH
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
ithirak_17
Participant
Posts: 17
Joined: Mon Sep 10, 2007 3:24 am

Post by ithirak_17 »

Hello all,
The function will returns the value. so how i can handle that???
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You select it as field in your source or lookup SQL. :?
-craig

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