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

# BRBAL.PUB

BRBAL.PUB is a public program that calculates the GL balance and unposted balance of GLJRx entries for a given GL account.

`0100 ENTER GLBALANCE,FILE[ALL],GLJR,O2$,JRNLTOT,G1[ALL],G0$,JRNL$,PDTHRU$,BANK_TYPE$`

Variable | Description
GLBALANCE | Sum of GLMAx periods and GLJRx unposted entries for a specified GL account
FILE[ALL] | Standard file array used for the data file channel number
GLJR | FILE[GLJR] element that the GLJRx file is opened on
O2$ | Bank Reconciliation options
JRNLTOT | Only the total of GLJRx unposted entries for a specified GL account
G1[ALL] | From GLMAx file, already read into memory for current GL account
G0$ | Company ID + GL Account to get balances for
JRNL$ | Set to "NO" if ignoring GLJRx file balances
PDTHRU$ | Ending period to balance thru
BANK_TYPE$ | Set to C for credit card banks, any other value for normal banks

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