Search found 8 matches
- Tue Mar 08, 2005 12:03 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Retrieve output value from a procedure in a routine
- Replies: 4
- Views: 2943
Thanks Ray. But I am trying to retrieve output from a stored proc and it is different from retrieving result set from a select statement. A simple oracle sp: create or replace procedure test1 (id out number) as begin id := 8; end test1; All I am trying to do it to retrieve the output value from call...
- Mon Mar 07, 2005 6:03 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Retrieve output value from a procedure in a routine
- Replies: 4
- Views: 2943
Re: Retrieve output value from a procedure in a routine
Thanks, Ray. I saw some of the posts mentioned using SQLBindCol instead of SQLBindParameter before calling SQLExecDirect, I've tried that, didn't work for me, still nothing returned. [quote="dealiang"]I use Datastage 7.1. I have a simple oracle procedure that takes one input param and retu...
- Mon Mar 07, 2005 3:30 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: To retrieve return value from a stored proc
- Replies: 1
- Views: 1275
To retrieve return value from a stored proc
I have a very simple oracle stored proc which prints out a value when executing it. create or replace procedure test1 as begin dbms_output.put_line(8); end test1; when calling the sp in sql*plus, it returns 8, but when calling it in a datastage 7.1 routine: status = SQLExecDirect(odbcStmtEnv, "...
- Mon Mar 07, 2005 2:00 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: oracle stored proc doesn't return SQL.SUCCESS.WITH.INFO
- Replies: 3
- Views: 2443
But why the same set of code returns info variable which contains the return value when executing a sql stored proc, not the oracle stored proc. I didn't have to use sqlbindcol to retrieve output from sql sp, the info variable already contains the return value. Anyways, as Ray suggested, I added the...
- Mon Mar 07, 2005 1:19 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: oracle stored proc doesn't return SQL.SUCCESS.WITH.INFO
- Replies: 3
- Views: 2443
oracle stored proc doesn't return SQL.SUCCESS.WITH.INFO
Hi All: I have a very simple oracle stored proc which prints out a value when executing it. create or replace procedure test1 as begin dbms_output.put_line(8); end test1; when calling the sp in sql*plus, it returns 8, but when calling it in a datastage 7.1 routine: status = SQLExecDirect(odbcStmtEnv...
- Fri Mar 04, 2005 5:47 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Retrieve output value from a procedure in a routine
- Replies: 4
- Views: 2943
Retrieve output value from a procedure in a routine
I use Datastage 7.1. I have a simple oracle procedure that takes one input param and returns one output param. I have a datastage routine calling the procedure then return the output, the procedure successfully executed but I can't get the output value. Any help greatly appreciated! My oracle proced...
- Thu Mar 03, 2005 12:08 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: calling an Oracle procedure in a datastage routine
- Replies: 10
- Views: 16868
Re: calling an Oracle procedure in a datastage routine
Thanks for replies. We use datastage 7.1. Does anyone know the right syntax of calling an oracle procedure from a datastage routine then return a value from the procedure? squote="'" EQU Statement To "Call " :"myProc (":squote:Client_nm:squote:")" status = SQL...
- Wed Mar 02, 2005 7:23 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: calling an Oracle procedure in a datastage routine
- Replies: 10
- Views: 16868
calling an Oracle procedure in a datastage routine
I am new to datastage, we use 7.x. I want to create a routine that execute an Oracle(10g) procedure which inserts a row to a table then returns one value(seq.currval), in sql*plus, I run the code below to execute myProc: DECLARE s number; BEGIN myProc ( 'test', s) ; dbms_output.put_line(s); END; I a...