You are here: Development Standards > Routines > General Routines > GENCVNUM.PUB

# GENCVNUM.PUB

GENCVNUM.PUB is a public program for retrieving and changing next check or voucher numbers from banks. Since we store the next check and voucher numbers with specific banks, a general interface was developed so that the next available check and voucher numbers are changed in a consisten manner.

`0050 ENTER FILE[ALL],APP$,TYPE$,PROCESS$,BANKID$,NUMBER,MSG$`

Variable | Description
FILE[ALL] | Standard file array.
APP$ | Application ID accessing the check number ('AP' or 'PA')
TYPE$ | "C" = Get/Change Check number "V" = Get/Change Voucher number
PROCESS$ | "G" = Retrieve check or voucher number "W" = Write check or voucher number
BANKID$ | Bank ID to process
NUMBER | Check or voucher number
MSG$ | Error message if bank is not found

Exit Points | Explanation
EXIT | GENCVNUM.PUB does not return any errors.