Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: Testing rerad cursor for status with predicate

$
0
0
Author: Rohit Umarjikar
Posted: Fri May 19, 2017 10:16 pm (GMT 5.5)

Quote:
but my employer wants to prevent -501s and -502s
At first place one should not code around this sqlcode because the moment you are coding this means your programming logic is messed up badly and that needs to be fixed as ideally one should get these SQLCODES.
second "IF READCUR IS OPEN" this is not a valid COBOL sentence, it should only "IF READCUR IS TRUE" where you got to set READCUR when you get -501/-502.
_________________
Regards,
Rohit Umarjikar
"Knowledge is knowing that a tomato is a fruit, but Wisdom is knowing not to put it in a fruit salad."icon_razz.gif


Viewing all articles
Browse latest Browse all 8500

Trending Articles