Re: Tracing paragraph Names in Pro Cobol
- From: "Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 22:58:29 +1200
<docdwarf@xxxxxxxxx> wrote in message news:f8cdu0$iqf$1@xxxxxxxxxxxxxxxxxxxx
In article <1185510901.109004.217150@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<balaji.amarnath@xxxxxxxxx> wrote:
On Jul 26, 1:54 pm, "Steve Rainbird"
<news.nos...@xxxxxxxxxxxxxxxxxxxxx> wrote:
<balaji.amarn...@xxxxxxxxx> wrote in message
news:1185428108.957939.304810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear All,
Is there anyway of tracing a paragraph name in a cobol program
in runtime.
I am using procobol of MicroFocus.
I want to trace a paragraph where there was a error (Both Run
TIme and Logical error).
Have a Great Day.
Add $SET TRACE at the beginning of your program.
Then put READY TRACE where you want tithe trace to start. It will show
you
what paragraph names are being performed.
Dear Steve
Thanks a lot for the suggestion.
Is there any way that i can store the names of the paragraph in
any variable or array.
This might be a wild guess but... you might, just possibly, be able to
'store the names of the paragraph in any variable or array' the same way
you store any other value in 'any variable or array', eg 'MOVE 'PARA-NAME'
TO FLD1'.
Have a great day.
And you as well... nay I ask for what reason, if you are 'using procobol
of MicroFocus', you are apparently attempting to reproduce a batch
debugging technique over two-and-a-half decades old?
Funny, I had exactly that same thought... visions of a 360 where we coded
stuff like...
IF UPSI-8-ON
READY TRACE.
.... at the start of every main program, and there was a SOP that if
something crashed the Operator set User Program Switch Indicator number 8 ON
(it was technically 7 as they started at 0, but they replaced what had been
8 physical toggle switches on the 1401 [ "sense switches" A through G,
referred to on our site as "1 through 8"]), re-ran the job, and then
provided the trace to the programmers in the morning...
Fortunately, things have moved on a bit since 1967, in both the mainframe
and network arenas.
I have an old copy of MicroFocus ProCOBOL on a Windows 3.1 machine
somewhere. I seem to recall that it had Animation even way back then...
(could be wrong; I haven't used it for many years).
What I'd really like to know is why someone would post and suggest "READY
TRACE", but NOT mention "RESET TRACE"... :-)
I guess, given what the original question was, it is a fair response; it
just seemed incomplete.
Sometimes the right question is every bit as important as the right answer.
Pete.
--
"I used to write COBOL...now I can do anything."
.
- Follow-Ups:
- References:
- Tracing paragraph Names in Pro Cobol
- From: balaji . amarnath
- Re: Tracing paragraph Names in Pro Cobol
- From: Steve Rainbird
- Re: Tracing paragraph Names in Pro Cobol
- From: balaji . amarnath
- Re: Tracing paragraph Names in Pro Cobol
- From:
- Tracing paragraph Names in Pro Cobol
- Prev by Date: Re: Web Services/XML Parser Error
- Next by Date: Re: Tracing paragraph Names in Pro Cobol
- Previous by thread: Re: Tracing paragraph Names in Pro Cobol
- Next by thread: Re: Tracing paragraph Names in Pro Cobol
- Index(es):
Relevant Pages
|
|