No row was found for FETCH, UPDATE or DELETE; or the result
Posted: Wed Oct 08, 2008 8:01 am
My datastage job will delete the records which are older than 60 months in the table.
The job is running fine if there is some data older than 60 months.
But when there is no data older than 60 months it is giving me a fatal error :
Error in row #1
Primary Error:
sqlcode=100, state=HY000, message=[IBM][CLI Driver][DB2/AIX64] SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table. SQLSTATE=02000
In the UDB DB2 stage i am writing an sql query like :
Delete from table where recorddate < orchestrate.date
here orchestrate.date is the date 60 months old than todays date.
Plz specify how to overcome this error.
The job is running fine if there is some data older than 60 months.
But when there is no data older than 60 months it is giving me a fatal error :
Error in row #1
Primary Error:
sqlcode=100, state=HY000, message=[IBM][CLI Driver][DB2/AIX64] SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table. SQLSTATE=02000
In the UDB DB2 stage i am writing an sql query like :
Delete from table where recorddate < orchestrate.date
here orchestrate.date is the date 60 months old than todays date.
Plz specify how to overcome this error.