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

# ARACTRAN.PUB

ARACTRAN.PUB is a public program that handles writing records to the Accounts Receivable ACH file. This interface is called from routines that need to write new records to BARCx.

The NXTSEQ record from the BARCx file is read to determine the next available sequence number for the ACH file, which is then used to write the new record to BARCx. That sequence number is also increased by 1, and written back to the NXTSEQ record in BARCx.

`0090 ENTER F0,BARC$`

Variable | Description
F0 | Channel BARCx file is open on
BARC$ | Template for BARCx file (see the Banking File Layouts)

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