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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

status information

Status
Not open for further replies.

konsri

Programmer
Feb 1, 2002
13
0
0
US
If there is an error executing a SQL statement(UPDATE/INSERT). How to know which parameter has caused the problem?

Thanks
Srikanth
 
If your mainframe you could always call DSNTIAR(Batch) or DSNCIAR(CICS) to extract any information in the SQLCA which may be of use to you.

If your on AIX I believe you need to use the sqlaintp function, although I haven't used this myself.

This translates all the information is the SQLCA into more meaningful text and as such can be of use in finding out why your SQL failed.

You will probably still have to do some detective work from the text output, but it usually helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top