Hi Shriyan,
In the solution that you gave me, I am trying to figure out the line -- "select dbinfo('sqlca.sqlerrd2') into cnt from systables where tabid = 1".
I have never used "select dbinfo". When I do error checking, I usually just check the SQLCODE for anything other than 0 with an IF statement and then write the SQLERRD2 to a variable and check that for the reason for the error. I looked up the dbinfo function but this didn't help much.
Also, why tabid = 1? Will it always be 1 or how do you know?
Thanks.
In the solution that you gave me, I am trying to figure out the line -- "select dbinfo('sqlca.sqlerrd2') into cnt from systables where tabid = 1".
I have never used "select dbinfo". When I do error checking, I usually just check the SQLCODE for anything other than 0 with an IF statement and then write the SQLERRD2 to a variable and check that for the reason for the error. I looked up the dbinfo function but this didn't help much.
Also, why tabid = 1? Will it always be 1 or how do you know?
Thanks.