MOD-10 - Documentation for BMC AMI DevX File-AID/Data Solutions 23.01
Daniel Foster
Published Apr 07, 2026
The MOD-10 field exit is a sample Non-standard check digit analysis routine.
Important
The following description applies to MOD-10 and MOD-10 LUHN.
This is a Modulus-10 routine using an alternating weight of 2. The selected input field must be a valid zoned decimal or packed decimal number from 3 to 18 digits in length. Data Solutions preserves the existing sign when the field is signed numeric.
Important
If there is a character field that is 3 to 18 bytes in length, contains only numeric data 0 through 9 and does not contain alpha data, then you can use the MOD-10 (and MOD-10 LUHN) field exit on that field.
The check digit output is stored in the right-most byte of the selected field when C (Creation) is specified. The right-most byte of the selected field is checked when V (Verify) is specified. The below table describes the parameters for the MOD-10 (and MOD-10 LUHN) exit.
MOD-10 (and MOD-10 LUHN) Parameters
Position | Value Description |
|---|---|
1 | Specify one of the following values in the parameter field (must be uppercase): C Create check digit (default). Data Solutions uses the field length specified in the record layout. V Verify check digit. |
2 -3 | Optional. You may specify a left-justified length to override the field length specified in the record layout. |