MOD-11
The MOD-11 field exit is a sample Modulus-11 check digit analysis routine which uses a sequenced weight. This MOD-11 routine employs the formula used by the federal government to create ISSN and ISBN check digits. The selected input field must be a valid zoned decimal number from 3 to 18 digits in length. Data Solutions preserves the existing sign when the field is signed numeric.
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-11 exit.
MOD-11 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. |