Skip to main content Skip to complementary content

Instructions

The instruction set in the transformation module is a simple, powerful set that is intelligible to all programmers since it does not use any specific programming principle. This is procedure-based programming.

If you change the contents of a I ou B buffer, it is modified in memory only for this transformation.

The original file (EXTRACT mode) or the journal entry (JOURNAL mode) will not be changed.

 

Example: 

If S.FactureAvoir = 'Refund' Then
      I.MONTANT = I.MONTANT * -1
      EndIf
      O.MONTANT = I.MONTANT

 

Constants

The constants may have different attributes.

Constant Description
‘ABC’ Alphanumeric constant
-123.45 Numeric constant
X’F1’ Hexadecimal constant

 

Field extract (sub-string)

You can perform operations on the entire field or a part of the field, using the syntax below:

 

b.field(start:length)

        N@n   N@n

        constant

              constant

  O.CAT = I.CODE(1:3)
       If O.CAT = ‘001’ Then
          O.CAT = ‘XX1’
       EndIf
       O.CODE(1:3) = O.CAT
       O.CODE(4:4) = X’09’

This wording can be used only with CHAR, VARCHAR, SCRIPT fields.

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!