ABEND-Handling under LE - Examples?

docdwarf_at_panix.com
Date: 05/13/04


Date: 13 May 2004 12:29:31 -0400


All righty, then... for those who missed the last installment of 'As the
Captain Codes' I had a utility program that was blowing up. The guts of
it were:

MOVE CORR REC-A TO REC-B

... and if there were bad numerics in REC-A the program would blow up and
dump with a S0C7.

Folks have stated that there are facets of the Language Environment which
will 'trap' a statement which would normally cause an ABEND and allow
processing to be resumed... this is something with which I am totally
unfamiliar.

Being (echo chamber on) CCCAAAAPPPTTAAAIIIINNN... COBOL... OBOl... OBol...
Obol... Iiiiii... leeeearrrrnnnn... (echo chamber off) I learn best from
reading code. Is there someplace that someone might point me towards
where I can find simple code, along the lines of:

WORKING-STORAGE SECTION.
01 STUFF.
    05 FILLER PIC XX VALUE SPACES.
01 FILLER REDEFINES STUFF.
    05 FLDA PIC 9.
    05 FLDB PIC 9.

PROCEDURE DIVISION.
                                                                 
    SUBTRACT FLDB FROM FLDA.
    DISPLAY ' MADE IT THROUGH, NYAH NYAH NYAH!'.

... and say 'In order to execute the DISPLAY you'll have to...'?

Thanks much.

DD



Relevant Pages

  • Re: ABEND-Handling under LE - Examples?
    ... For DD - or anyone else interested in an "intro to LE condition handlers" - may ... > Captain Codes' I had a utility program that was blowing up. ... > MOVE CORR REC-A TO REC-B ... NYAH NYAH NYAH!'. ...
    (comp.lang.cobol)
  • Best practice for splash screen
    ... I am developing a small utility program that must perform a considerable amount of 'background' or 'research' work before it can display any user interface. ... Since the main thread is in control, it is much easier to collect the information from the initialization thread and to control the splash screen thread. ...
    (microsoft.public.dotnet.general)