How to trace a program under CEDF ?



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

How to trace a program under CEDF ?

Postby michel123 » Thu Apr 18, 2013 1:32 am

How to trace a program under CEDF?

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

Thank you.
michel123
 
Posts: 58
Joined: Tue Dec 28, 2010 12:28 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to trace a program under CEDF ?

Postby Robert Sample » Thu Apr 18, 2013 1:52 am

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: How to trace a program under CEDF ?

Postby michel123 » Thu Apr 18, 2013 2:17 am

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?
michel123
 
Posts: 58
Joined: Tue Dec 28, 2010 12:28 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to trace a program under CEDF ?

Postby Robert Sample » Thu Apr 18, 2013 4:01 am

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: How to trace a program under CEDF ?

Postby c62ap90 » Thu Apr 18, 2013 4:45 am

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!
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: How to trace a program under CEDF ?

Postby michel123 » Thu Apr 18, 2013 2:51 pm

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.
michel123
 
Posts: 58
Joined: Tue Dec 28, 2010 12:28 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to trace a program under CEDF ?

Postby Stefan » Thu Apr 18, 2013 6:10 pm

Why not using DISPLAY statement in COBOL program?
Those days are long gone when DISPLAYs caused severe trouble in CICS.
There are 10 types of people in the world: Those who understand binary, and those who don't.
User avatar
Stefan
 
Posts: 27
Joined: Tue Aug 21, 2012 3:02 pm
Has thanked: 0 time
Been thanked: 2 times

Re: How to trace a program under CEDF ?

Postby michel123 » Sun Apr 21, 2013 2:03 pm

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.
michel123
 
Posts: 58
Joined: Tue Dec 28, 2010 12:28 am
Has thanked: 0 time
Been thanked: 0 time


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post