You are here: Development Standards > Routines > Application-SpecificRoutines > ARCRLCK1.PUB

# ARCRLCK1.PUB

ARCRLCK1.PUB is a public program that checks the customer balance against the credit limit. It includes current transactions and cash receipts in the balance.

`0100 ENTER CUST$,CREDLIM,ARTHFNUM,ARCRFNUM,FILE[ALL],CURRTRAN$`

Variable | Description
CUST$ | Customer ID
CREDLIM | Customer credit limit
ARTHFNUM | FILE[] array index for the ARTHxxx file
ARCRFNUM | FILE[] array index for the ARCRxxx file
FILE[ALL] | Standard file array used for the data file channel number
CURRTRAN$ | Current transaction number

Exit Points | Explanation
EXIT | ARCRLCK1.PUB normally exits with no error.
EXIT ERR | An error is returned when an error occurs.