You are on page 1of 15

Setting up of Account check Digits in Globus

Globus allows various types of Account Number calculation. The type is determined by the
option chosen by the customer in the file COMPANY
Case ACCT.CHECKDIG.TYPE =’’

When no value is input in the ACCT.CHECKDIG.TYPE field Globus performs a default Modulo
11 Check digit type calculation

For e.g. a 10 Digit Account Number will be weighted as follows

1 2 3 4 5 6 7 8 9 – Account Number

4 3 2 7 6 5 4 3 2 – Weights

In the above case a weighted value of 4 + 6 + 6 + 28+30+ 30 +28+24+18 = 174

The check digit calculated is Remainder (174/11) => 9, 11 – 9 = 2

The account number so calculated is 1234567892

Note: If the calculated check digit is greater than 9, then the calculated value is subtracted with
3 to obtain the proper account number.

For e.g.

1 3 3 4 5 6 7 8 9 – Account Number

432765432

Gives a weight of 177. Remainder (177/11) = 1, 11-1 = 10, which is greater than 9. So the new check-
digit is 10 –3 = 7

The new account so calculated is 1334567897


Case ACCT.CHECKDIG.TYPE =’1’

This is applicable only in case where the Local currency begins with BE example Belgian
Francs –BEF

When using the above type the field ACC.BKNO.PREFIX must be input. It can contain up to
three numeric values. The Account mask must contain 12 Digits.

The check digit for the account is calculated as follows

The first three digits of the account no is 1 2 3. The last two digits are calculated as check
digits based on the division of the first 10 digits by 97. The remainder is calculated as the
check digit. If the remainder is Zero, then 97 is assumed.

For eg

1230000062 are the first 10 digits of the Account, then Account no is calculated as

Mod (1230000062, 97) = 1. Therefore the check digit is 01.

Similarly when 0 is the mod value, 97 is assumed


Case ACCT.CHECKDIG.TYPE =’2’

This is applicable only when the local currency begins with LU. Example LUF, Luxembourg
Francs

When using the above type the field ACC.BKNO.PREFIX must be input. It can contain two
numeric values. The Account mask must contain 14 Digits.

The check digit is calculated as follows,


The Last 4 digits and the first 8 digits are taken.

The last 4 digits is prefixed before the first 8 digits. Divide this by 97. The remainder value is
the check-digit. If the calculated value is 0 then replace it with 97. The check digit is placed in
the 9 and 10th positions of the Account Number.

For example, if the first 8 digits are -12000000


And the last four digits are -0001

Prefix the Last four digits to the first eight digits.

Prefix 0001 to 12000000. 000112000000. Fetch the modulo using 97.

Mod (112000000, 97) = 17

The calculated account 12000000-17-0001


Case ACCT.CHECKDIG.TYPE =’3’

When the ACCT.CHECKDIG.TYPE is ‘3’ is used it indicates a 10 digit Account Number with a
Modulus 11 Check. No value is allowed in ACC.BKNO.PREFIX

When an Account Number is input, a weighted value is calculated as follows

1 3 3 4 5 6 7 8 9 1 – Account Number
10 9 8 7 6 5 4 3 2 1 - Weighted values.

The weighted value is 10+24+27+28+30+30+28+24+18+1 = 220

The modulo value is calculated as Mod (Weighted Value, 11) = (220, 11) = 0. If the modulo is
not equal to Zero then an error is displayed.

If any less than 10 numbers are input, Globus automatically prefixes the Account number with
Zeros before performing the check digit Calculation.
Case ACCT.CHECKDIG.TYPE =’4

When the ACCT.CHECKDIG.TYPE =’4’ Globus creates a 11-digit Account Number, which has
2 digit ACC.BKNO, followed by a 7 digit account number, followed by 2 –check-digit numbers.

The check-digit is calculated using modulus 11 Calculation

12 – 1234567- Check Digit value

Check digit is calculated on 1234567

1 2 3 4 5 6 7 – Account Number

8 7 6 5 4 3 2 – Weighted Average

8 + 14 +18 + 20 + 20 + 18+14 = 112

Mod (112, 11) =2

11-2 = 9
The calculated check digit is 9. It is formatted as 09 to fit.

The calculated account number is 12-1234567-09


Case ACCT.CHECKDIG.TYPE =’5’

When the ACCT.CHECKDIG.TYPE is set to ‘5’ Globus does a standard check-digit calculation
and prefixes the Account Number with Zeros and formats the account number as specified in
Account Mask

For example

If the account number is 123456 then the check digit is calculated as

1 2 3 4 5 6 7 – Account Number
2 7 6 5 4 3 2 – Weighted Value

2 + 14 + 18 + 20 + 20 + 18 + 14 = 106

Mod(106,11) = 7

Check digit = 11 – 7 = 4

The calculated account is 00 – 1234567-4


Case ACCT.CHECKDIG.TYPE =’6’

When the ACCT.CHECKDIG.TYPE is set to 6 then 12 –14 digit account number the first are
made on the first 6 digits and the second on the remaining digits. The ACCOUNT.MASK must
be set to 16 characters.

The account number input can either be a 14 digit or a 12-digit account number.
If it is a 12 digit number then it is prefixed with zeros. It is suffixed with 2 ‘0’s to make it a
sixteen digit account number

Consider a 14 digit account number

124556-10345678
This is converted to 1245561034567800

Now the first six digits are extracted and the following operation performed on them

1 2 4 5 5 6 – Account Number (The third digit is the Check-digit, 4 in this e.g.)

10 5 8 4 2 1 - Weights assigned to each number

A standard array of numbers for comparison is built as follows

Check- Digit Array – 0,4,8,1,5,9,2,6,X,3,7

Two check digit values are now calculated on the first six digits.

1. 1 * 10 + 2 * 5 + 4 * 8 + 5 * 4 + 5 * 2 + 6 * 1 = 88
2. 1 * 10 + 2 * 5 + 5 * 4 + 5 * 2 + 6 * 1 = 56
(The check digit 4 from position 3 in the account number is not included for calculation)

Now the following conditions must be satisfied,

1. Mod (88,11) = 0
2. Mod (56,11) = 1
Now, the check digit array is checked with a value of 1 + 1 =2
Check – digit –Array [2] =4
Check digit in the Account number = 4
Hence the first six digits have passed the Check digit calculation
The check digit check will now be performed on the next 10 digits

1 0 3 4 5 6 7 8 0 0 – Account number
6 3 7 9 10 5 8 4 2 1 – Weighted values

A new check digit array for verification is also available

Check digit Array – 0,X, 9,8,7,6,5,4,3,2,1

The check digit is calculated on the 10 digits as

=(1*6)+(0*3)+(3*7)+(4*9)+(5+10)+(6*5)+(7*8)+(8*4)+(2* 0)+(1* 0)
=6 + 21 + 36 + 50 + 30 + 56 + 32 = 231

The following conditions must be satisfied,

1. Mod (231,11) = 0 Which is satisfied


2. Check Digit Array [Mod (231,11)+1] = Account number [10,1]
Check Digit Array [1]= 0
0 = 0 hence the second condition is also satisfied

The calculated account no is 1245561034567800


Case ACCT.CHECKDIG.TYPE 99’

When NO Check-Digit calculation is required, the ACCT.CHECKDIG.TYPE must be set to 99.

When no check digit calculation is specified Globus will use the Number input after formatting it
to the Format Specified in ACCOUNT.MASK
Case ACCT.CHECKDIG.TYPE =’@Routine’

When the ACCT.CHECKDIG.TYPE is set to a routine, a Local routine can be used to calculate
the Account check-digit

0001: SUBROUTINE TEST.ACCOUNT.CHECKDIGIT


! The account number must be set in COMI
! error text if any, must be set in the
! ETEXT variable.
0002: $INSERT I_COMMON
0003: $INSERT I_EQUATE
0004: **********************************
0005: COMI =COMI :'123'
0006: RETURN
0007: END

When a new account is created, it will automatically be suffixed with 123.


Case ACCT.CHECKDIG.TYPE =”Customer Number in Account”

When customer Number must form a part of the Account Number, the file
ACCOUNT.PARAMETER must be used.

The fields CUSTOMER.CODE.POS and CUST.CODE.LEN indicate the starting position of


Customer code position in the Account Number. The CUST.CODE.LEN indicates the length of
the Customer code in the Account number.

When the Customer code is not a part of the Account Number, or an Incorrect customer
number is input in the CUSTOMER field, an Error message is raised.
Case ACCT.CHECKDIG.TYPE =”Branch Code in Account”

In a multi-company Globus system, it is necessary to have a branch identifier in the Account


number. (Inter – company transactions, anywhere banking etc.) Globus provides a facility to
include a branch number as part of the Account number.

The file INTERCO.PARAMETER allows us to define the Branch code to be included as part of
the Account number.

The field BRANCH.CODE.START indicates the Starting position of the Branch code in the
Account number

The field BRANCH.CODE.LENGTH indicates the length of the Branch code in the Account
number.

The field BRANCH.CODE indicates the Actual branch code to be used in the Account number.
Each company can have one or more Branch codes.
In the above case, the Company US0010001 can have branch codes of 1 or 3.

Branch code of 1
Branch code of 3

When an Incorrect branch code is input:

You might also like