Procedural Language (PROC) Reference
Procedural Language (PROC) programming language is intended for use by programmers familiar with the Reality or RealityX programming environment.
A PROC comprises one or more commands that are executed when the PROC is called via a single word command.
Any sequence of commands that can be executed from the terminal can be stored in a PROC. In addition, there are special PROC commands. These stored commands are executed by the PROC processor and require no compilation phase, although PROCs can optionally be compiled for greater efficiency.
PROC is similar to the Job Control Language (JCL) used in other computer systems, but it has more capabilities and is therefore more powerful. It can be used interactively to prompt the user. It can test and verify input data as it is entered from the keyboard. It has the ability to access and update file.
Everything in Reality is PROC and is used to automate commands. This makes Reality highly interactive.
These commands are executed by typing the name of the PROC at the TCL prompt (:). The syntax will depend on the PROC. Some system commands are PROCs.
PROC commands have the code PQ or PQN in attribute 1 of their PROC definition items. You can create new commands by writing your own PROCs.
When creating new PROC commands two conventions should be observed.
-
Create your own file to hold your library of PROCs, that is, do not put them in the files containing system PROCs or in the MD.
-
Put a transfer to the appropriate PROC library in attribute 2 of the PROC command definition item in the MD, so that the execution of the PROC is done in the library file rather than in the MD.