Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

procedure call in data services

$
0
0

Hi All,

 

I have written a sql procedure to truncate a table as below.

 

create or replace

procedure TRUNCATE_TABLE (TABLE_NAME IN VARCHAR2)

AS

BEGIN

EXECUTE IMMEDIATE ('truncate table ' || TABLE_NAME);

END;

 

I have imported this procedure in data services. I am trying to execute it in a script as follows.

 

begin

sql('DS_SEL_PEM_SDB','BODS_ODS_SEL.TRUNCATE_TABLE{''LES_PS_PRODUCT_DATA''}');

end

 

 

But I am getting below error

 

Identifier <LES_PS_PRODUCT_DATA> is unrecognized. Check its spelling and usage. If it is a variable, it needs a preceding

'$'; if a constant, it must be quoted; if a column, verify that such a column exists in a table.

 

The string is already quoted. Still this error. Anyone has idea how to call procedure with parameter in script?


Viewing all articles
Browse latest Browse all 3719

Trending Articles