If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
SET SCOUNT_STMT = 'SELECT COUNT(*) INTO '''|| Char(SCOUNT) || ''' FROM '||SCHEMA_NAME||'.RTBL RTBL,'||SCHEMA_NAME||'.ETL_LINEAGE A
WHERE A.DM_LINEAGE_CREATE_TS = '''|| CAST(RUN_DT AS CHAR(26) ) ||''' AND
A.PROCESS_NM = '''||PROCESS_NAME||'''';
--PREPARE SCOUNT_STMT1 FROM SCOUNT_STMT;
EXECUTE IMMEDIATE SCOUNT_STMT;
SET SOURCE_COUNT = SCOUNT;
Hi
I try to execute the above statement.There are around 12 rows in my table.But I get the below err.
SQL0198N The statement string of the PREPARE or EXECUTE IMMEDIATE statement
is blank or empty. SQLSTATE=42617
Statement processed with ERROR.
Please help
Thanks
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified http://www.infocura.be
You should have a look at the final statement that's being generated. Pass it as an OUT parameter back from your stored procedure. Maybe you have a schema name that requires delimiters, maybe something else.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development