ODBC Enterprise stage...

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
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

ODBC Enterprise stage...

Post by allavivek »

Hi All,

Iam using odbc enterprise stage as a lookup ..performing sparse lookup of table..

problem is before lookup it should execute 2 stored procedures and based on these procedures data is dumped in to table(view actually)..

i was trying to use open/close command and trying to call procedures as

call p1(.......);
call p2(....);

I was getting error as below...

main_program: Fatal Error: Invalid close command : call p1(...);
call p2(... );

can we call Multiple procedures by this close/open option??

Thanks...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I have a vague recollection that a doubled semi-colon is required (;;). Search DSXchange.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

ray.wurlod wrote:I have a vague recollection that a doubled semi-colon is required (;;). Search DSXchange. ...
Hi ray,

i tried giving ;; but it didnt work ..i tried searching dsxchange but couldnt find solution..

Q.is it possible to call 2 stored procedures at a time in open/close command...

Thanks..
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

I was giving below

callin 2 procedures in block.

BEGIN
proc1(..);
proc2('..) ;
COMMIT;
END;

Not getting any errors but stored procedures are not executing..
Is above format correct to execute 2 procedures??
iam using odbc enterprise stage..

thanks..
Last edited by allavivek on Tue Aug 17, 2010 8:50 am, edited 1 time in total.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Does it have any OUT or Return?
Try with out Aruguments.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

kumar_s wrote:Does it have any OUT or Return?
Try with out Aruguments. ...
Yes both procedures have arguments..
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Try without Arguments. I read in one of the post that ODBC are not good in handling Procedures with Arguments.
Isnt Stored procedure stage working out for you?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

kumar_s wrote:Try without Arguments. I read in one of the post that ODBC are not good in handling Procedures with Arguments.
Isnt Stored procedure stage working out for you? ...
I need to execute 2 procedures and as os i know STP can execute only one procedure...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So use two stages.
-craig

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