Apr 22, 2002 #1 konsri Programmer Feb 1, 2002 13 US If there is an error executing a SQL statement(UPDATE/INSERT). How to know which parameter has caused the problem? Thanks Srikanth
If there is an error executing a SQL statement(UPDATE/INSERT). How to know which parameter has caused the problem? Thanks Srikanth
Apr 23, 2002 #2 gregsimpson Programmer Apr 18, 2002 521 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. Upvote 0 Downvote
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.
Apr 23, 2002 #3 MarcLodge Programmer Feb 26, 2002 1,886 GB Feel free to post the statement and sqlcode here. Marc Upvote 0 Downvote