F$GETQUI() is a useful, if rather complex lexical function.
We won’t go into great detail about it at this point in the session. Later in this session, we will show how a batch job can use F$GETQUI() to get information about itself. A little later, we’ll discuss using F$GETQUI in a loop to get information about queues and the jobs in them.
See also the on-line HELP and the DCL Dictionary for additional information about F$GETQUI().