For Programmers: Free Programming Magazines  


Home > Archive > Cobol > February 2006 > Special Command









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Special Command
Praveen

2006-02-23, 7:55 am

Hi,

I am into the debugging of a cobol program and would like to know if
there is a statement that I can code in the COBOL program so that
during the flow of the logic of the program, it will give a display of
the paragrah it is entering. The program I am debugging contains close
to 300 paragraphs. So it is not feasible to give a display in all of
them seperatly.

Can some on please help me out, if there exists such a commad. I gave a
google search but it didnt come out with anything relevant. I dont know
if I am giving the right search keys.


Thanks a lot in advance.

Regards,
~Praveen.

Lorca

2006-02-23, 7:55 am

Hi,

please look for TRACE-Option in your compiler directives.

Greetings

Thomas

William M. Klein

2006-02-23, 7:55 am

What compiler are you using? What interactive debugger are you using?

You may also want to look at the USE FOR DEBUGGING procedures and the DEBUG-ITEM
special register (if available)

--
Bill Klein
wmklein <at> ix.netcom.com
"Praveen" <praveen.unnithan@gmail.com> wrote in message
news:1140677393.705623.204270@i40g2000cwc.googlegroups.com...
> Hi,
>
> I am into the debugging of a cobol program and would like to know if
> there is a statement that I can code in the COBOL program so that
> during the flow of the logic of the program, it will give a display of
> the paragrah it is entering. The program I am debugging contains close
> to 300 paragraphs. So it is not feasible to give a display in all of
> them seperatly.
>
> Can some on please help me out, if there exists such a commad. I gave a
> google search but it didnt come out with anything relevant. I dont know
> if I am giving the right search keys.
>
>
> Thanks a lot in advance.
>
> Regards,
> ~Praveen.
>



Praveen

2006-02-23, 7:55 am

hi...
Yup I found the cobol statement. It is READY TRACE . But it is not
supported in the cobol that I am using... it is IBM Enterprise COBOL
for z/OS 3.4.0.

error came as...

IGYPS2021-W "READY TRACE", "RESET TRACE" and "SERVICE RELOAD" are not
supported. A
"CONTINUE" statement was assumed.


SO is there any way I can use the same command or anything similar to
the TRACE command!

Thanks a lot for your time!

Regards,
Praveen.

ozzy.kopec@gmail.com

2006-02-23, 7:55 am

Praveen wrote:
> hi...
> Yup I found the cobol statement. It is READY TRACE . But it is not
> supported in the cobol that I am using... it is IBM Enterprise COBOL
> for z/OS 3.4.0.
>
> error came as...
>
> IGYPS2021-W "READY TRACE", "RESET TRACE" and "SERVICE RELOAD" are not
> supported. A
> "CONTINUE" statement was assumed.
>
>
> SO is there any way I can use the same command or anything similar to
> the TRACE command!
>
> Thanks a lot for your time!
>
> Regards,
> Praveen.

===============
I quickly perused the on-line site at:
http://publib.boulder.ibm.com/infoc...ate_nobrand.htm
short link -> http://tinyurl.com/j7xnf

You check out the logic flow example here: http://tinyurl.com/zuep9

Sorry I can't be of more help.

Jeff

2006-02-23, 6:55 pm

Is this Praveen from SEDC?

Howard Brazee

2006-02-23, 6:55 pm

On 22 Feb 2006 22:49:53 -0800, "Praveen" <praveen.unnithan@gmail.com>
wrote:

>I am into the debugging of a cobol program and would like to know if
>there is a statement that I can code in the COBOL program so that
>during the flow of the logic of the program, it will give a display of
>the paragrah it is entering. The program I am debugging contains close
>to 300 paragraphs. So it is not feasible to give a display in all of
>them seperatly.


There used to be one in mainframe IBM CoBOL, but not anymore. Lots
of compilers have debugging tools, but you haven't told us your
compiler and OS, nor what tools are available to you.

I often simply have a statement at the start of each paragraph that
displays the paragraph. I use debugging mode:

SOURCE-COMPUTER.
IBM-390 WITH DEBUGGING MODE.
** IBM-390.

Then I have:

1000-READ-LOOP.
move '1000-read-loop' to paragraph-name.
D display paragraph-name.



SkippyPB

2006-02-23, 6:55 pm

On 23 Feb 2006 01:03:42 -0800, "Praveen" <praveen.unnithan@gmail.com>
enlightened us:

>hi...
>Yup I found the cobol statement. It is READY TRACE . But it is not
>supported in the cobol that I am using... it is IBM Enterprise COBOL
>for z/OS 3.4.0.
>
>error came as...
>
>IGYPS2021-W "READY TRACE", "RESET TRACE" and "SERVICE RELOAD" are not
>supported. A
> "CONTINUE" statement was assumed.
>
>
>SO is there any way I can use the same command or anything similar to
>the TRACE command!
>
>Thanks a lot for your time!
>
>Regards,
>Praveen.


Look here; http://tinyurl.com/j7xnf

Regards,
////
(o o)
-oOO--(_)--OOo-


WOODY: "Hey Mr. Peterson, there's a cold one waiting for you."
NORM: "I know, if she calls, I'm not here."
From the American TV Show, "Cheers"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Remove nospam to email me.

Steve
William M. Klein

2006-02-23, 6:55 pm

Check the IBM documentation or that compiler. Look in the "Migration Guide" and
search for "READY TRACE" and see what it says.

--
Bill Klein
wmklein <at> ix.netcom.com
"Praveen" <praveen.unnithan@gmail.com> wrote in message
news:1140685421.980586.314210@z14g2000cwz.googlegroups.com...
> hi...
> Yup I found the cobol statement. It is READY TRACE . But it is not
> supported in the cobol that I am using... it is IBM Enterprise COBOL
> for z/OS 3.4.0.
>
> error came as...
>
> IGYPS2021-W "READY TRACE", "RESET TRACE" and "SERVICE RELOAD" are not
> supported. A
> "CONTINUE" statement was assumed.
>
>
> SO is there any way I can use the same command or anything similar to
> the TRACE command!
>
> Thanks a lot for your time!
>
> Regards,
> Praveen.
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com