QUE_PERDAY is a procedure that runs after midnight each night. You can write a procedure that is executed by QUE_PERDAY to process the day's shots or do any other chore, such as file cleanup. To process the previous day's shots, use GETSHOT_NO_BQ , which, like GETSHOT_NO_FQW, defines the symbol SHOTNUMBER. However it gets the shot numbers from a file generated during the day.
$ GETSHOT_NO_BQ "HPP"TFTR_EXAMPLES:BQ_EXAMPLE.COM contains an example procedure. Do $ SETUP BQ before using GETSHOT_NO_BQ. See Tom Gibney if you have a procedure to be run by QUE_PERDAY.