The CTHRESH definition has a "Cancel" attribute that specifies the cancellation type or strength.
We would suggest setting this to "AUTO". At time of cancel, the AUTO will use the SYSVIEW CICS Transaction Cancellation definitions to determine how to cancel, or if NOT to cancel based on current wait reason.
AUTO - Determine cancellation type based on wait reasons defined in the parmlib member CTRANCAN.
Transaction cancel definitions can also be viewed and modified using the CTRANCAN
Then, you would setup a CTRANCAN definition with NOCANCEL in the DYNAMIC column for the specific wait reason you want to wait:
You should use CTASKS to view that condition and use the values in columns WaitType and WaitName
Moreover, many examples of Wait Type and Wait Name are available in the Parmlib member CTRANCAN :