2 11 1 Examples

LANSA for i

2.11.1 Examples

These examples are provided to illustrate the use of the complex logic rule facility:

Check Required

Program Specified

Additional Parameters

Pass field DATDUE to program DATECHECK for validation.

DATECHECK

none

Pass field DATDUE to program INVCHECK for validation. Also pass fields INVNUM and COMPNO.

INVCHECK

INVNUM

COMPNO

Pass field TAXCDE to program TAXCHECK for validation. Also supply tax scale 7 as a parameter with 3 decimal positions.

TAXCHECK

      7.000

or +7.000

or 07.000