The entry point NUMERO is used to insert additional logic in the assignment of a number from a sequence number counter.
The following tables are on line :
Table | Significant content | Table description |
---|---|---|
AVALNUM [AVN] | Yes | Sequence number values |
ACODNUM [ANM] | Yes |
In most cases, a transaction is under process. Yet, it all depends on the calling program. In the same way, depending on the context, there may be an open log file or not.
The following variables are on line:
Variable or mask | Definition |
Char COMPTEUR | sequence number counter name |
Char SIT | Site |
Char DAT | Date |
Char COMP | Value of the additional field |
Char VALEUR | sequence number counter value |
Integer STAT | Error status (0=OK, else error) |
Integer PERIODE | Period |
It is possible, for example, to re-assign the value of COMP as a function of the value of COMPTEUR and the calling context. It is then necessary to ensure that the sequence number counter can only be used by a single program or in the same context.
The variable GPE is tested on the return from the entry point. It return to zero provokes the exit from the sub-program and the remainder of the standard process is not executed. increase in the sequence number counter (AVALNUM table) and return VALEUR for the sequence number counter number.