Search code examples
debuggingcobolmainframecics

CICS/COBOL Abend ASRA in debugger only


I have an issue I don't seem to find a solution for. One of the transactions gives ABEND ASRA when used in debug mode. When I compile the Cobol program without debug option and run the program, it works fine.

The error looks like this one (quite exactly like this), only I am using Cobol V4: http://www-01.ibm.com/support/docview.wss?uid=swg1PM96501

Now the question would be: why is it abending in debugger and not without debugger? I am using the CICS debugger (DTCN transaction), the program starts normally, I can do steps with F2 and all this, then at some location is abends. Please note that it is extremely difficult to say where it abends as the program is really big.

This happens only to this program at the moment, others are running fine with debugger. I placed a breakpoint before my modifications, the abend occurs in some other area.

Another weird thing is that this Abend is not consistent, If I do a big portion of the code with small steps (F2 and small breakpoints), sometimes it executes without abend until the end.

Due to the nature of the issue, I can not post much information. I was hoping you encountered similar issues and you can tell me where to look for.

Thank you!


Solution

  • The issue was solved by deleting my debug tool profile form the system and then login to the debugger (DTCN) again so it creates a new profile (the profile was 3 files: TOOLTEMP.PDTOOLS.{userid}.DBGTOOL.* ). After this the issue was gone. I asked the guys how this happened, they told me this was because I had modified the program between 2 debugging sessions without closing CICS. This was a disfunction that can be avoided by closing CICS while we compile programs used in it (not sure about why exactly.... neither are they). Hope this helps if you face a similar issue with DTCN debugging.