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

# ARCRTRAN.PUB

ARCRTRAN.PUB is a public program that handles writing records to the Accounts Receivable cash receipt file. This interface is called from routines that need to write new records to ARCRx.

The NXTCx record from the ARCTx file is read to determine the next available sequence number for the cash receipt file, which is then used to write the new record to the ARCRx file. That sequence number is also increased by 1, and written back to ARCTx.

`0090 ENTER ARCRCH,ARCTCH,CR0$,CR1$,CR1[ALL],CR2$,CR3$,CR2[ALL],CR4$,CR5$,CR6$,CR99$[ALL],CR99[ALL]`

Variable | Description
ARCRCH | Channel ARCRx file is open on
ARCTCH | Channel ARCTx file is open on
CR0$,..CR99[ALL] | ARCRxxx IOList variables (see the Accounts Receivable File Layouts)

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