Processes [ HP ALLBASE/4GL Developer Reference Manual Vol. 2 ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Reference Manual Vol. 2
Processes
An HP ALLBASE/4GL process is similar to a program in a conventional
language.
When a process starts, most parts of the HP ALLBASE/4GL environment are
initialized. At the start of a process, the following actions occur:
* Any current process, screen, function, decision table, or report
is terminated immediately.
* Any incomplete HP ALLBASE/SQL transactions are reversed, and all
current HP ALLBASE/SQL cursors are closed.
* All HP TurboIMAGE/iX data sets are closed, and all locks are
released.
* All application data files are closed.
* All file record buffers, work areas and screen buffers are
cleared.
When HP ALLBASE/4GL initiates a process, the contents or state of the
following items remain unchanged:
* Communication area fields other than *PROCESS.
* Scratch-pad fields.
* Switches.
* Variables.
At the conclusion of the process, control returns to the previous menu.
This means that control may not return to the entity that initiated the
process. For example, if HP ALLBASE/4GL executes the process as a
decision table action, control does not return to the decision table at
the conclusion of the process.
Creating a process involves two stages. You complete the process header
screen first, and then define the logic block for the process using the
process details screen.
A process logic block consists of up to 99 steps, where each step
contains one or more logic commands. If you need a process containing
more than 99 steps, you can use logic commands to invoke other functions,
decision tables, reports or screens from within a process. Chapter 12
describes the HP ALLBASE/4GL logic commands.
MPE/iX 5.0 Documentation