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: Tue May 23, 2017 8:49 pm (GMT 5.5)

Quote:
........ so it just seems as though my COBOL or DB2 environment doesn't tolerate predicate usage.........although I admit throwing a '14' return code at compile time and saying that READCUR is undefined seems a weird way to make that point.
You are mixing COBOL and SQL statements. You need to clearly able to differentiate them. What you coded is in COBOL and not under "EXEC SQL" so you will get compilation errors and the reason is in my previous post.
Quote:
.... but the "OPEN" is taken from IBM's Manual on using DB2 predicates so I would think it would be right ..........
Please point us to the manual that said so.
_________________
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