Skip to main content

Problem:

This program displays a list of Run-time error numbers and ERRORLEVEL values. The displays are re-directed to a text file by the OutDD Compiler directive.

Resolution:

INTRODUCTION

==========

SOURCE FILES:

=========

Program Files           Description

--------------------     -----------------------------------------------------------

ErrLevel.cbl             This program displays a list of Run-time error numbers and ERRORLEVEL

                                values. The displays are re-directed to a text file by the OutDD

                                Compiler directive.

Text Files                Description

--------------------     -----------------------------------------------------------

Errorlvl.txt              This is the output file created by ErrLeve.cbl. The formatted output

                               appears as below:

                                  Run Time Error 9/*** - ERRORLEVEL *****

REQUIREMENTS:

==========

This program should work with almost any version of Micro Focus COBOL.

OPERATION:

========

Check and Animate the program to produce a fresh copy of the text file.

REFERENCES:

========

File Status

-------------

NetExpress Bookshelf: File Handling, Chapter 4: File Status

Netxpress Help: Click Contents tab

                           Click "Reference > File Handling > File Status > File Status Codes >

                           Extended File Status Codes" to display list.

OutDD Compiler directive

-------------------------------

NetExpress Bookshelf:

NetExpress Help: Click the Index tab and type "outdd" in window 1, click "OUTDD Compiler

                            directive" in window 2, click Display.

==========================================================

Keywords: demonstration, sample, example, demo, errorlevel.zip

demo.ex

demo.me

demo.ne

demo.se

Attachments:

ErrorLevel.zip

Old KB# 4004