I have to handle these data abends in my program by sending the error-code to the UI.
I have a COBOl - CICS program where i want to populate the error-code if a SOC-7/ SOc-4 abend occured.
dick scherrer wrote:Hello,
Someone needs to fix the code so that the abends no longer occur. . .
Proper discipline developing and thorough testing is needed to prevent these abends. Many of the systems i've supported have not had a Production abend in years. . .
Robert Sample wrote:Personally, I think you are playing with fire and will get burned sooner or later. HANDLE ABEND does not handle all CICS ABEND conditions, so your transaction can still ABEND even if you use HANDLE ABEND. Furthermore, unless you know exactly what you're doing, it is not all that hard when coding up HANDLE ABEND logic to create a situation where you bring down the entire CICS region -- hardly a good thing for an application programmer! If you use a program in your HANDLE ABEND, for example, CICS expects that program to terminate with an ABEND (it's in the manual) -- so what did you gain by changing an ASRA or ASRB ABEND into your own ABEND code?
Multiple experienced CICS programmers (with a total of more than 100 years of CICS experience) are telling you that what you propose is not a good idea. You continue on this course, ignoring over 100 years of (often hard-earned) experience. I believe the appropriate quote is, "Fools rush in where angels fear to tread." -- although I don't think all of us qualify as angels.
"where i (sic) want to populate" -- meaning the code doesn't already contain this.I have to handle these data abends in my program by sending the error-code to the UI.
I have a COBOl - CICS program where i want to populate the error-code if a SOC-7/ SOc-4 abend occured.