home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
cobol
/
library
/
assist
/
readme.1st
< prev
next >
Wrap
Text File
|
1993-12-08
|
6KB
|
156 lines
FILE STATUS CODES are valuable tools in checking the results of various file
operations within COBOL code. There use with VSAM and Indexed files is
especially effective in debugging, but they may be used for other files as well.
The files you have downloaded in ASSIST.ZIP are source code files which will
allow you to build a program to identify the meaning of FILE STATUS CODES.
These files may be distributed to anyone under four conditions:
(1) No changes are to be made to any source code being distributed,
including designation of AUTHOR, Description or Copyright;
(2) Files must be distributed together;
(3) This README.1ST file must accompany files;
(4) No charge is to be made for distribution.
The source code has been written in COBOL and is designed to be compiled on
Micro Focus Cobol. If you are using another COBOL compiler you can amend
the code for your use. The basic COBOL code will work with any compiler,
however the screen display code will have to be modified, and the apporpriate
changes in the Directives will have to be made.
Also, for those of you using Micro Focus COBOL, you should note that the
ADISCF is set for Terminate Accept (disabled) and the ENTER key has been
redefined as a RIGHT CURSOR.
Included in ASSIST.ZIP are the following files:
ASSIST.CBL - The lead program used to Chain the main programs
ABEND2.CBL -The main program which allows you to enter the
File Status Code and get explaination as to the
meaning of the code.
DETAIL1A.CBL - The program which calls the detail information
about the File Status Code.
SOC7.CBL - A help screen outlining the purpose of the program
LOADER.CBL - A program which loads detailed explaination of the
various FILE STATUS CODES into an indexed file
called FSTAT2.DAT.
FSTAT2.CBL - A line sequential file containing the detail of the
various FILE STATUS CODES.
************** WHAT YOU DON'T GET **************
The source code contained in ASSIST.ZIP gives you examples of screen handling
in Micro Focus COBOL and examples of handling of Indexed files. With it you
can build a working program.
However, the FSTAT2.DAT file which accompanies ASSIST.ZIP does not include
the detail of the FILE STATUS CODE. That is, you can get a brief explaination
of the FILE STATUS CODE in question, but not a detailed one.
If you want to write your own detail, you can do this by adding detail to
FSTAT2.CBL. Here's how it works;
Each FILE STATUS CODE is given twenty (20) lines in FSTAT2.CBL. The first
line is the brief explaination which appears on the ABEND2 screen. The next
19 lines appear when you ask for detail by pressing F1. You can add detail
by inserting information on those 19 lines and then using LOADER.CBL to
create a new FSTAT2.DAT file.
BUT BE CAREFUL! At the end of each line is a number which becomes the INDEX
for the FSTAT2.DAT file. Don't remove, reposition or change these numbers
or FSTAT2.DAT won't work.
************ AN EASIER WAY *************
There is an easier way to load this information. Fill out the enclosed
order blank along with a check for $5.00 and I will send you a FSTAT2.CBL
file which contains detail for FILE STATUS CODES, including information for
IBM SYSTEM 370/390 and VAX.
Or, send $15.00 and I will include a reference text describing the various
uses and options of FILE STATUS CODES including BINARY and IBM VSAM's
RETURN/FUNCTION/FEEDBACK codes.
************ HOW TO USE THE PROGRAM ************
After compiling the various programs listed above run LOADER.CBL. This will
create FSTAT2.DAT and FSTAT2.IDX, giving you the detail information for each
FILE STATUS CODE.
To begin the program, run ASSIST.EXE. This program chains to the main
program ABEND2.EXE. The purpose of ASSIST.EXE is to keep as little as possible
in memory, since in Chaining the first program is kept in memory until the
program is terminated.
At the screen type the two digit FILE STATUS RETURN CODE. Press F2 and you
will see a brief explaination on the screen. (This is the first line of the
twenty lines of FSTAT2.DAT discussed above). For further information about
the FILE STATUS CODE press F1 and you will get a Detail Screen.
If you press F1 without first indicating a FILE STATUS CODE, you will get a
generic HELP screen (SOC7.EXE).
To return to the Main Screen from either the Generic Help Screen or the
Detail Screen, press F1 again.
To exit the program from any screen, press F10.
************************** ORDER FORM ***************************************
ENCLOSED IS A CHECK FOR TO COVER THE COST OF MAILING AND MATERIALS.
PLEASE SEND ME:
_____ FSTAT2.CBL (to be used with LOADER.CBL) $5.00
or
_____ FSTAT2.CBL AND FILE STATUS REFERENCE MATERIAL $15.00
SEND TO:
NAME:________________________________________
STREET:______________________________________
CITY:________________________ STATE:_____ ZIP:_____________
MAIL ORDER FORM TO:
GEORGE F. HARRIS
120 COOLIDGE AVE.
BARRINGTON, ILL 60010