Can some show me a couple of examples of the usage of SQLCODE and SQLSTATE.

Thanks
-soumil