Page 1 of 1

How to trace a program under CEDF ?

PostPosted: Thu Apr 18, 2013 1:32 am
by michel123
How to trace a program under CEDF?

Add which command to determine what is running, because only CICS commands are displayed ?

Thank you.

Re: How to trace a program under CEDF ?

PostPosted: Thu Apr 18, 2013 1:52 am
by Robert Sample
What kind of trace are you wanting? CEDF allows you to follow the program flow by looking at the CICS commands being executed.

CICS LINK and XCTL commands will be displayed by CEDF. However, if your program includes calls that are not performed through the CICS commands, there is no way for you to know when the program is executing in the subprogram unless you put CICS commands in it.

Re: How to trace a program under CEDF ?

PostPosted: Thu Apr 18, 2013 2:17 am
by michel123
Okay, so I will try to auscultate working under CEDF to see if my indices and counters have changed.

I thought about doing a SEND TEXT with the name of the paragraph to say what paragraph is active?

Re: How to trace a program under CEDF ?

PostPosted: Thu Apr 18, 2013 4:01 am
by Robert Sample
There are packages, such as Xpediter/CICS, which allow you to step through a CICS program line by line. They are not cheap, however, and if your site does not already have one installed then the cost to install would be tens or hundreds of thousands of US dollars.

In the absence of such tools, you might want to investigate using EXEC CICS WRITEQ TD at key points of your program code; your site support group can tell you the name of the TD queue that contains the CICS message log. Writing your program output to the message log simplifies finding it, usually.

Re: How to trace a program under CEDF ?

PostPosted: Thu Apr 18, 2013 4:45 am
by c62ap90
Since Xpediter or MACRO4 Trace Master (our shop has both) I never use CEDF anymore. But back 20-years ago when CEDF was my only option I would send "trace" data to a particular line of my Map/Mapset. Usually it was line-23 where I displayed error messages. It's not a lot of space and somewhat cumbersome but it works. Good luck!

Re: How to trace a program under CEDF ?

PostPosted: Thu Apr 18, 2013 2:51 pm
by michel123
In fact, no debug tool is installed, this is the reason for my question.

I will study the two previous solutions and see for WRITEQ TD.

Thank you.

Re: How to trace a program under CEDF ?

PostPosted: Thu Apr 18, 2013 6:10 pm
by Stefan
Why not using DISPLAY statement in COBOL program?
Those days are long gone when DISPLAYs caused severe trouble in CICS.

Re: How to trace a program under CEDF ?

PostPosted: Sun Apr 21, 2013 2:03 pm
by michel123
Hello, finally I have not used the DISPLAY with CEDF.
I made writes to a TS that I read during debugging with CEBR. This is quite handy.

Thank you all.