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

# RMCHKLY.PUB

RMCHKLY.PUB is a public program that checks for last-year GL files, and prompts the user for current- or last-year entry. It also updates the entry table in the CALLing application or removes the table, depending on the task requested.

`0025 ENTER T$,TABLE$,TASK,LASTYEAR,EXT$,MESSAGE$,OSGUI$`

Variable | Description
T$ | Table file name for the application
TABLE$ | Table ID
TASK | Task to be performed: 0 - create table and prompt for current- or last-year entry 1 - delete the table 2 - return LASTYEAR and the extension (no prompts)
LASTYEAR | Current- or last-year entry flag: 0 - current-year entry 1 - last-year entry
EXT$ | Extension for the GL files
MESSAGE$ | Returns a message string if an error occurs
OSGUI$ | Template for GUI functions

Exit Points | Explanation
EXIT | RMCHKLY.PUB does not return an error.