sysLib.verifyChkDigitMod11(
text CHAR | NUM in,
checkLength INT in,
result SMALLINT inOut)
The following example shows an account number that includes a check digit.
program VerifyDigit11 type BasicProgram
acctNo CHAR(10) = "56621869"; // 9 is check digit
len SMALLINT = 8;
result SMALLINT = 0;
function main()
sysLib.verifyChkDigitMod11 (acctNo, len, result);
if (result != 0)
sysLib.writeStdout("Check digit not correct");
end
end // main
end // program
For more information about the algorithm used to calculate the value of the check digit, see calculateChkDigitMod11().
| Platform | Issue |
|---|---|
| JavaScript generation | The function sysLib.verifyChkDigitMod11() is not supported |