Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with GET DIAGNOSTICS statement in DB2 Stored procedure

Status
Not open for further replies.

a2210

Technical User
Mar 14, 2007
1
US

Hi
I am handling EXCEPTION n DB2 for getting SQLSTATE i am using
GET DIAGNOSTICS CONDITION 1 v_state = RETURNED_SQLSTATE;

But when running this statement i m getting error message that RETURNED_SQLSTATE unexpected token.
So tell me how it can be used .
Please help me

Regards

Amit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top