Page 1 of 1

Open command at oracle stage

Posted: Thu Sep 29, 2011 4:11 am
by vinsashi
Hi,
I created stored procedure in oracle database.

create or replace procedure sp_TruncateLandingTable
( itable_name varchar2 ) as
l_table varchar2(255);
begin
l_table := 'truncate table ' || itable_name;
dbms_utility.exec_ddl_statement(l_table);
end sp_TruncateLandingTable;


and in oracle stage open command option i am calling like this

EXECUTE sp_TruncateLandingTable RFRT_CAD_FXTR_DATA,0

but job getting aborted invalid command like that it saying.
and i have tried like this also
exec ssp_TruncateLandingTable RFRT_CAD_FXTR_DATA

Please help on this


Thanks
v.........

Re: Open command at oracle stage

Posted: Thu Sep 29, 2011 4:55 am
by BI-RMA
Hi vinsashi,

Correct syntax for execution of a stored procedure in Oracle is
CALL procedure_name(parameter_1,...)

So DataStage is right to tell You that exec or EXECUTE is an invalid command.

Posted: Thu Sep 29, 2011 7:55 pm
by vinsashi
Thanks a lot its working with CALL statement.