Browse Prior Art Database

Table-Driven Application Program

IP.com Disclosure Number: IPCOM000111549D
Original Publication Date: 1994-Mar-01
Included in the Prior Art Database: 2005-Mar-26
Document File: 4 page(s) / 90K

Publishing Venue

IBM

Related People

Saitta, CJ: AUTHOR [+3]

Abstract

The subject technique requires two parts to be operational. Part 1 is an installed black box program, which contains a defined set of functions, and Part 2 is a dynamic control file table. The control file causes the program to access, control and perform functions to an input file.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Table-Driven Application Program

      The subject technique requires two parts to be operational.
Part 1 is an installed black box program, which contains a defined
set of functions, and Part 2 is a dynamic control file table.  The
control file causes the program to access, control and perform
functions to an input file.

      The actual function of the application program is accessed and
controlled by the control file table.  By having multiple control
file tables, you can have multiple applications using the same
program to provide different functions.  The key is the code to do
the function in the application one time and can be used with
different variables, constants, and results fields in any way the
application needs.  This is an example of defined functions and
repeatable code usage.  The usage of the program together with the
control file table is functionally equivalent to coding each and
every function in an application, and the advantage is that it
reduces the number of lines of code and resulting errors.

CONTROL FILE DESCRIPTION

      The control file describes the various selections, creations,
and functions to be performed on the input file.  The functions
available and a description of the format in the control file
follows.

Control File Layout

      This is a collection of 80-byte records which specify various
control and modification activities to be performed on the input
file.  Each 80-byte control record contains a sequence number field
of nine bytes, three control blocks of 21 bytes each, and a number
field of eight bytes.  Following is the layout of the 80-byte control
record:

     COLUMN         DESCRIPTION

     1  -  9        Sequence Number

     10 - 30        Control Block 1

     *******        *** see 21-Byte Control Block below ***

     31 - 51        Control Block 2

     52 - 72        Control Block 3

     73 - 80        Record Number

Each 21-Byte Control Block contains:

FLD 1     (1 byte) DATA CONVERSION INDICATORS for FIELD III and IV
          See example of valid indicators under FUNCTION INDICATORS
          below.

FLD 2     (1 byte) FUNCTION INDICATOR
          See example of valid indicators under FUNCTION INDICATORS
          below.

FLD 3     (4 bytes - numeric) POSITION OF FIELD
          Start position of the field to be checked or updated in
          the input record.  Used with FLD 4 to access data.

FLD 4     (2 bytes - numeric) LENGTH OF FIELD
          Length of field specified in FLD 3 to be checked.  Used
          with FLD 3 t...