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

# APRESTRT.PUB

APRESTRT.PUB is a public program that checks for aborted posts and posts in process on another terminal.

`0100 ENTER F0,F1,BATCH$,TERM$,MSG$,PICKS$,PARAM,STATUS`

Variable | Description
F0 | Channel number of the APBTxxx file
F1 | Channel number of the APTMTxxx file; set to 0 if not opened
BATCH$ | Batch ID to check
TERM$ | Terminal ID to check or FILL(4) to check all terminals
MSG$ | Returns a message string if the check fails
PICKS$ | Returns the pick screen options to restart the post
PARAM | Task to perform: 0 - check for aborted post on the terminal 1 - check for aborted post on all terminals 2 - check for batch in use on another terminal 3 - change print status flag for the batch 4 - create and lock temporary print lock file
STATUS | Returns a value based on the batch status: 0 - batch is available 1 - aborted post detected 2 - batch posting on another terminal 3 - aborted print job detected 4 - batch printing on another terminal 5 - batch ID not found 6 - unable to create or lock temporary post or print file -99 - error updating print status

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