Numeric registers
The transformation module uses ten numeric registers (N@0 to N@9) that are pre-declared as long integer numbers (Long Windows, AS/400 IBMi 4 binary).
These integers can contain a value ranging from -2,114,000 to 2,114,000.
They are essential for extracting the contents of a field dynamically.
/* Find all occurrences in buffer I.DESCRIPTION
/* with the character à to replace it with @.
N@0 = 0
BEGIN_SCAN:
SCAN I.LIBELLE WITH 'à' POS N@0 IFNOTFOUND END_SCAN
I.LIBELLE(N@0:1) = '@'
GoTo BEGIN_SCAN
END_SCAN:
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!