You are here: Adding Section and Field Rules > Overflow and User Functions

Overflow and User Functions

Many of the rules support the use of overflow symbols and user functions which work together. An overflow symbol can be thought of as a block of memory that holds a counter. This counter, or overflow variable, tracks the number of records processed which helps the system determine which record to start with after it handles an overflow situation.

To use overflow, you must include specific data. This overflow data consists of the…

The @GetRecsUsed function is a function the rule runs to access information about a pre-defined overflow symbol. The overflow symbol is stored with the field level rules. You must define all overflow symbols using the SetOvFlwSym rule, which is a job level rule stored in the AFGJOB.JDT file.

The second part is the name of a form, which is retrieved from the form file (FOR) specified in the INI file.

The third part is the overflow symbol itself.

     
Note The first three data items are separated by commas. These items are separated from the rest of the data that the rule requires by a forward slash (/).

Here is an example:

@GETRECSUSED,DETAILS,Symbolnm/11,DETAILREC;N;N;N;