M
Member 310024
Guest
I work with COBOL/DB2 MVS on IBM Mainframe.
Does a declare cursor statement, containing the "EXEC SQL SELECT WHERE etc END-EXEC", actually set the return condition code SQLCODE?
Put differently, does it make sense to check the SQLCODE after the declare cursor statement (which doesn't include the OPEN), or will it just check the SQLCODE vlaue that happened to be setup by the last DBIO?
Put differently again, is it thru that the declare cursor statement doesn't don anything with SQLCODE, because it doesn't actually perform a DBIO (Data-Base IO) operation?
Does a declare cursor statement, containing the "EXEC SQL SELECT WHERE etc END-EXEC", actually set the return condition code SQLCODE?
Put differently, does it make sense to check the SQLCODE after the declare cursor statement (which doesn't include the OPEN), or will it just check the SQLCODE vlaue that happened to be setup by the last DBIO?
Put differently again, is it thru that the declare cursor statement doesn't don anything with SQLCODE, because it doesn't actually perform a DBIO (Data-Base IO) operation?