Thread: CICS

Test region looped 30 min on a DB2 cursor - how do you kill this fast?

Started by Kayla • user4 replies168 viewsLast activity 2 weeks ago
Post #1
1 votes
Kayla
Reputation
72
Posts: 10
Joined: Sep 11, 2025, 8:22 AM
Posted: Jul 29, 2026, 11:41 AM

Dev entered a bad key in test. CICS program opened a cursor, FETCH loop never set EOF, and it just sat there dumping to CEEMSG. Ops took forever to cancel the region because of the ticket process.

ICVR is 3000. There is an EXEC CICS PUT CONTAINER inside the loop so I am not sure runaway detection even helps.

Besides "fix the missing MOVE to WS-EOF" - what do shops do so one bad test does not pin a region? ASULIMIT? hard fetch caps in test only?

Post #2
0 votes
Dave
Reputation
356
Posts: 25
Joined: Jul 21, 2024, 2:55 PM
Posted: Jul 29, 2026, 1:41 PM

Fetch loop must key off SQLCODE, not a flag some other SQL might clobber. In test we also hard-cap fetches (e.g. stop at 200) when the region name is the test LPAR.

ASULIMIT from the DBA side can stop a runaway SQL. Ask them what it is set to in test vs prod.

Post #3
0 votes
Tom
Reputation
263
Posts: 18
Joined: Mar 8, 2024, 10:10 PM
Posted: Jul 29, 2026, 4:41 PM

Cancel the task from CEMT if you can still get in. Do not wait for a full region recycle unless the region is already wedged. We have a short-path for test cancels that skips the prod severity ladder.

Post #4
1 votes
Kayla
Reputation
72
Posts: 10
Joined: Sep 11, 2025, 8:22 AM
Posted: Jul 30, 2026, 12:41 PM

Pushed for a test-only cancel path and a fetch cap. DBA is checking ASULIMIT tomorrow.

You must be signed in to reply to this thread