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

# PAHCCHK.PUB

PAHCCHK.PUB is a public program that handles writing records to the Payroll PAHCx Check History file. This interface is called from routines that need to write new records to the PAHCx file.

GENSEQ.PUB is called to determine the next available sequence number for the Checj History file, which is then used to write the new record to PAHCx.

`0099 ENTER F0,OSSECH,OSSE$,HC0$,HC1$,HC2$,HC3$,HC4$,HC5$,HC1[ALL],HC6$,HC99$[ALL],HC99[ALL]`

Variable | Description
F0 | Channel PAHCx file is open on
OSSECH | Channel OSSE file is open on
OSSE$ | String template for OSSE$
HC0$...HC99[ALL] | PAHCxxx IOList variables (see the Payroll File Layouts)

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