QUEUED

Read syntax diagramSkip visual syntax diagramQUEUED()

returns the number of lines remaining in the external data queue when the function is called.

The TSO/E implementation of the external data queue is the data stack.

Here is an example:
QUEUED()    ->    5    /* Perhaps */