I have CICS program which has TSQ functionality coded.i.e writing the TSQ in 00 screen and reading the same in 01 screen. But its abending with abend code 4094 after the sending screen and when it goes to
EXEC CICS RETURN
I have found out that LE abend 4094 is the cics storage viloation.
But still I am unable to find out what the reason could be. Can somebody who has come across the same abend or knows more shed some more light for my analysis?
Normally when you do a RETURN TRANSID your COMMAREA field is a WORKING-STORAGE structure. Your code specifies DFHCOMMAREA, which is probably in LINKAGE SECTION. Most likely when your transaction returns, CICS releases the storage associated with the current transaction which means DFHCOMMAREA is no longer part of your storage. That would cause a storage violation when you tried to use storage you don't have any more, as when the new transaction kicks off.