Setting Keeps on Db2-Specific Data
In Code Debug CICS, the KEEP command is used to continuously view a data field on the Source Listing screen (2.L). You can display various Db2 data items, such as working storage items, DFHCOMM fields, indices, and Db2 fields. You can add any Db2 specific data item, such as SQLCODE or SQLERRM, to the keep window, as long as it is defined to your program.
To display the current SQLCODE value, enter KEEP SQLCODE in the COMMAND field. Once displayed, you can modify data by replacing the contents of the field. This is an excellent way to test IF logic after an SQL call.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*