Mod-10 - Documentation for Bmc Ami Devx File-Aid/Data Solutions 23.01

The MOD-10 field exit is a sample Non-standard check digit analysis routine.

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.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest