Specific Routines

The operator PUNTO_ENT enables you to run specific routines through User Function and to use parameters for the function created.

These functions can be used in formulas as long as they are compiled in the repository. The return is stored in a Mnemonic, enabling you to use the result in the formula.

The operator PUNTO_ENT is not registered in the Mnemonic table (RCA). Thus, it is not displayed in the standard query (F3).

Procedures

Changing operators to make a calculation:

1. Add or change formulas.

The operator PUNTO_ENT must be used to run RDMAKE functions.

2. Create a specific function through User Function.
3. Fill out fields as follows:
1st Expression: Enter the function created using U_ before the function name or only the function name;
Op.1: Enter the operator PUNTO_ENT;
2nd Expression: Enter the parameters of the function created (optional);
Result: Enter a Mnemonic to store the function result.

Example:

1st Expression

Op. 1

2nd Expression

Result

MediaSal

PUNTO_ENT

SRA->BRANCH,SRA->REG

NAUX01

In this example, a function was created to return the employee salary average with the parameters: branch and registration. The function result is stored in the Mnemonic NAUX01.

If the return of the function created is a character, its result must be stored in a character mnemonic. Thus, the mnemonic entered in the result field must equal to the function return.

4. The operator PUNTO_ENT can also be used without parameters. For that, create a specific function through User Function and fill out the fields as follows:
1st Expression: Enter the function created;
Op.1: Enter the operator PUNTO_ENT;
2nd Expression: Do not fill out this field, that is, leave it blank;
Result: Enter a Mnemonic equal to the function return.

Example:

1st Expression

Op. 1

2nd Expression

Result

hrAtual

PUNTO_ENT

 

cAux01

In the example above, a function was created, which does not receive any parameter and indicates the current time stored in a Mnemonic of type c - character.

5. After entering data, check and confirm them.