Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is equivalent of STATE option ?

0 views
Skip to first unread message

Michael R Linn

unread,
Jul 29, 1997, 3:00:00 AM7/29/97
to

Does anyone know what the COBOL 2 equivalent is for the "STATE" compiler
option that was used in VS COBOL?
(With the STATE compiler option, if the program ABENDs
(such as division by zero), the run-time listing will show the actual
COBOL statement number where the ABEND occurred).

I tried using "FDUMP", but it didn't seem to tell me which statement it
was. I also tried "TEST" which yielded nothing new.
Finally I tried "TEST(ALL,SYM)" and "TEST(STMT)", and the compiler
rejected them as invalid compiler options.

Anyone know?

...

J Lenz

unread,
Jul 29, 1997, 3:00:00 AM7/29/97
to

If you are using FDUMP and OPTIMIZE, then you will not get a line number
for the ABEND, but rather the HEX address (offset, perhaps) of where the
error occurred. Use that address to compare to you compile listing, and
you should be able to locate the line within the compile listing where
the error occurred. Also, FDUMP will display the value of program
variables at the time the ABEND occurred. We are a VSE/ESA shop.

Joseph Lenz
TTI, Inc.
Fort Worth, TX

bu...@bellatlantic.net

unread,
Jul 31, 1997, 3:00:00 AM7/31/97
to

In article <33DE79...@arlington.net>,

just to add something to the confusion. sometimes, if not most of the
time, the HEX address given is the next instruction to be processed and
not the actual address. so when you check the compile listing, look for
the address just before (or less than) the given address.

Rob Canuel

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet

Kevin Cabral

unread,
Aug 1, 1997, 3:00:00 AM8/1/97
to jlen...@arlington.net

To really not directely answer the question, I would highly recommend
purchasing a dump formatter such as Abend-Aid. This will solve your
problem and provide other assistance. This tool runs under the
operating system and provides hooks which are used when an abend
occurs. I have used this for many years, and the productivity time
increases--particularly when its 2:00 am.

Good Luck
Kevin

Jeff Raben

unread,
Aug 1, 1997, 3:00:00 AM8/1/97
to

>> Michael R Linn wrote:
>> >
>> > Does anyone know what the COBOL 2 equivalent is for the "STATE" compiler
>> > option that was used in VS COBOL?
snip
>> If you are using FDUMP and OPTIMIZE, then you will not get a line number
>> for the ABEND, but rather the HEX address (offset, perhaps) of where the
snip

>just to add something to the confusion. sometimes, if not most of the
>time, the HEX address given is the next instruction to be processed and
>
>Rob Canuel
>

Adding more to the confusion...

You have to find the program origin via link/load maps.

Then you can find the problem.

JR
and stir with a Runcible spoon...

0 new messages