:-) Yes, I checked. Here is the statement, and it is on the correct cursor. I have tried different isolation levels, but none work. It is super weird, as I have done this before and it has worked, so I have no idea what is different with this one. We have thought about putting displays in the generated COBOL, but if I find something I can't fix within Gen, that is not going to help. If anything comes to mind, please let me know. I am calling the commit dynamically from within the READ EACH, but have done that before and not had a problem.
EXEC SQL DECLARE CUR_1779434173_1 CURSOR WITH HOLD FOR
SELECT
SHM_SHIPMENT01."SHP_INST_ID",
SHM_SHIPMENT01."PRO_NBR_TXT",
SHM_SHIPMENT01."PKUP_DT",
SHM_SHIPMENT01."ESTIMATED_DLVR_DT",
SHM_SHIPMENT01."LST_UPDT_TMST",
SHM_SHIPMENT01."CALC_SVC_TMST",
SHM_SHIPMENT01."LST_UPDT_UID",
SHM_SHIPMENT01."BILL_CLASS_CD",
SHM_SHIPMENT01."BILL_STAT_CD",
SHM_SHIPMENT01."CHRG_TO_CD",
SHM_SHIPMENT01."ORIG_TRMNL_SIC_CD",
SHM_SHIPMENT01."DEST_TRMNL_SIC_CD",
SHM_SHIPMENT01."SPLIT_IND",
SHM_SHIPMENT01."HAZMAT_IND",
SHM_SHIPMENT01."FRZBLE_IND",
SHM_SHIPMENT01."GARNTD_IND",
SHM_SHIPMENT01."COD_IND",
SHM_SHIPMENT01."DISC_CD",
SHM_SHIPMENT01."LATE_TENDER_CD",
SHM_SHIPMENT01."SPOT_QUOTE_ID"
FROM
"SHM_SHIPMENT" SHM_SHIPMENT01
WHERE
(
SHM_SHIPMENT01."LST_UPDT_UID" = 'REMATCH'
)
WITH CS
END-EXEC
Thanks!
Cathy