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

# ARTRAN.PUB

ARTRAN.PUB is a public program that will generate, validate, and reserve a transaction number for the ARTHx file. The returned number should be used as the transaction number before writing a new record to the ARTHx file.

`0100 ENTER FILE[ALL],TRAN,CT1,CT2,TH0$`

Variable | Description
FILE[ALL] | Standard file array used for the data file channel number
TRAN | FILE[TRAN] index that the ARTDx file is opened on
CT1 | FILE[CT1] index that the ARCTx file is opened on
CT2 | FILE[CT2] index that the ARCTx file is opened on. This must be different than CT1
TH0$ | Batch/Transaction number from ARTHx. Should contain batch ID set by the calling program + " " or "0000". The transaction is returned in the last 4 characters.

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