Determine if the specified function is running in batch (part of ADAPSTOP)
Determine if the specified function is running in batch. When the function name isn't found in the batch queues, the stop file is removed. When the function name is found in the batch queues, the function is running and CKQUE returns without removing the stop file.
- INSTOP
- Input stop file. The name of the stop file that will be deleted when the specified procedure or function does not exist in the batch queues.
- SRCHSTR
- Search string. The string to be searched for in the output of the "qstat" (SGI) function. This should normally be the name of function running in batch.
The output from the UNIX function "qstat" is searched for the string "bwtrans". If it is not found, the stop file "bwtrans;stop" is removed. If it is found, BWTRANS is currently running, and the function returns without removing the stop file.
Get the input parameters and verify that the input stop file exists. Search for SRCHSTR in the output from the "qstat" function. If SRCHSTR is not found remove the input stop file; otherwise return without doing anything.
A fatal error was encountered. The message that is displayed preceding this message is the error that was encountered.
CKQUE requires output from the "qstat" function to determine if the specified function is running in batch. The "qstat" function is only supported on the Silicon Graphics (SGI) systems at this time.