Difference between revisions of "F$GETQUI()"
Line 21: | Line 21: | ||
| [[DISPLAY_CHARACTERISTIC]] || Returns information about a specific characteristic definition or the next characteristic definition in a wildcard operation. | | [[DISPLAY_CHARACTERISTIC]] || Returns information about a specific characteristic definition or the next characteristic definition in a wildcard operation. | ||
|- | |- | ||
− | | [[DISPLAY_ENTRY]] || Returns information about a specific job entry or the next job entry that matches the selection criteria in a wildcard operation. The DISPLAY_ENTRY function code is similar to the DISPLAY_JOB function code in that both return job information. DISPLAY_JOB, however, requires that a call be made to establish [[ | + | | [[DISPLAY_ENTRY]] || Returns information about a specific job entry or the next job entry that matches the selection criteria in a wildcard operation. The DISPLAY_ENTRY function code is similar to the DISPLAY_JOB function code in that both return job information. DISPLAY_JOB, however, requires that a call be made to establish [[F$GETQUI Context|queue context]]; DISPLAY_ENTRY does not require that [[F$GETQUI Context|queue context]] be established. Only those entries that match the user-name of the current process will be processed. |
|- | |- | ||
| [[DISPLAY_FILE]] || Returns information about the next file defined for the current job context. Before you make a call to F$GETQUI to request file information, you must make a call to display queue and job information (with the DISPLAY_QUEUE and DISPLAY_JOB function codes) or to display entry information (with the DISPLAY_ENTRY function code). | | [[DISPLAY_FILE]] || Returns information about the next file defined for the current job context. Before you make a call to F$GETQUI to request file information, you must make a call to display queue and job information (with the DISPLAY_QUEUE and DISPLAY_JOB function codes) or to display entry information (with the DISPLAY_ENTRY function code). | ||
Line 27: | Line 27: | ||
| [[DISPLAY_FORM]] || Returns information about a specific form definition or the next form definition in a wildcard operation. | | [[DISPLAY_FORM]] || Returns information about a specific form definition or the next form definition in a wildcard operation. | ||
|- | |- | ||
− | | [[DISPLAY_JOB]] || Returns information about the next job defined for the current [[ | + | | [[DISPLAY_JOB]] || Returns information about the next job defined for the current [[F$GETQUI Context|queue context]]. Before you make a call to F$GETQUI to request job information, you must make a call to display queue information (with the DISPLAY_QUEUE function code). The DISPLAY_JOB function code is similar to the DISPLAY_ENTRY function code in that both return job information. DISPLAY_JOB, however, requires that a call be made to establish [[F$GETQUI Context|queue context]]; DISPLAY_ENTRY does not require that [[F$GETQUI Context|queue context]] be established. |
|- | |- | ||
| [[DISPLAY_MANAGER]] || Returns information about a specific [[Queue manager|queue manager]] or the next queue manager in a wildcard operation. | | [[DISPLAY_MANAGER]] || Returns information about a specific [[Queue manager|queue manager]] or the next queue manager in a wildcard operation. |
Revision as of 14:21, 26 November 2019
F$GETQUI() is a lexical function that returns information about queues, including batch and print jobs currently in the queues, form definitions, characteristic definitions kept in the queue database, and queue managers. For most operations, read access is required.
Format
F$GETQUI (function,[item],[object-id],[flags])
Brackets ([]) denote an optional argument. Some function arguments cannot be specified with the item-code, the object-id, or the flags argument; visit the function section below for more information.
Arguments
function
Specifies the action that the F$GETQUI lexical function is to perform. F$GETQUI supports all functions that can be specified with the $GETQUI system service. The following table lists these functions:
Function | Description |
---|---|
CANCEL_OPERATION | Terminates any wildcard operation that may have been initiated by a previous call to F$GETQUI. |
DISPLAY_CHARACTERISTIC | Returns information about a specific characteristic definition or the next characteristic definition in a wildcard operation. |
DISPLAY_ENTRY | Returns information about a specific job entry or the next job entry that matches the selection criteria in a wildcard operation. The DISPLAY_ENTRY function code is similar to the DISPLAY_JOB function code in that both return job information. DISPLAY_JOB, however, requires that a call be made to establish queue context; DISPLAY_ENTRY does not require that queue context be established. Only those entries that match the user-name of the current process will be processed. |
DISPLAY_FILE | Returns information about the next file defined for the current job context. Before you make a call to F$GETQUI to request file information, you must make a call to display queue and job information (with the DISPLAY_QUEUE and DISPLAY_JOB function codes) or to display entry information (with the DISPLAY_ENTRY function code). |
DISPLAY_FORM | Returns information about a specific form definition or the next form definition in a wildcard operation. |
DISPLAY_JOB | Returns information about the next job defined for the current queue context. Before you make a call to F$GETQUI to request job information, you must make a call to display queue information (with the DISPLAY_QUEUE function code). The DISPLAY_JOB function code is similar to the DISPLAY_ENTRY function code in that both return job information. DISPLAY_JOB, however, requires that a call be made to establish queue context; DISPLAY_ENTRY does not require that queue context be established. |
DISPLAY_MANAGER | Returns information about a specific queue manager or the next queue manager in a wildcard operation. |
DISPLAY_QUEUE | Returns information about a specific queue definition or the next queue definition in a wildcard operation. |
TRANSLATE_QUEUE | Translates a logical name for a queue to the equivalence name for the queue. |
Some function arguments cannot be specified with the item-code, the object-id, or the flags argument. See the function pages for the exact syntax.
item
Corresponds to a $GETQUI system service output item code. The item argument specifies the kind of information you want returned about a particular queue, job, file, form, or characteristic.
object-id
The object-id argument specifies either the name or the number of an object (for example, a specific queue name, job name, or form number) about which F$GETQUI is to return information or in some cases the wildcard characters. Wildcards (asterisks (*) and percent signs (%)) are allowed with the following functions:
- DISPLAY_CHARACTERISTIC
- DISPLAY_ENTRY
- DISPLAY_FORM
- DISPLAY_MANAGER
- DISPLAY_QUEUE
A wildcard can represent only object names, not object numbers. When a name is used with wildcard characters, each call returns information for the next object (queue, form, and so on) in the list. A null string ("") is returned when the end of the list is reached.
flags
Specifies a list of keywords, separated by commas, that corresponds to the flags defined for the $GETQUI system service QUI$_SEARCH_FLAGS input item code. (These flags are used to define the scope of the object search specified in the call to the $GETQUI system service.) Note that the keywords can be used only with certain function codes.