Hi,
I was looking for some example which would show the usage of SQLCODE and SQLSTATE varaibles.

I have a batch program which runs. In that batch depending on the outcome of some of the programs I wanted to take appropriate action.

-Soumil