## zowe › ejes › query

Query the host using (E)JES. Return host spool, dataset, and library tables. Return browsable data as reports. Query commands specify which primary table to query. Each primary table may also have child tables or child reports you can query using the --table and/or --report options. You can access only those primary tables you are authorized to use. Issue these commands as an introduction: (1) "zowe ejes query list" to show available tables.(2) "zowe ejes query status --owner help" to demonstrate how to find how it all works. (3) "zowe ejes query status --owner list" to demonstrate how to find appropriate arguments. (4) "zowe ejes query status --owner myuserid --sort time d" to view a sorted table of your jobs.(5) "zowe ejes query status --owner myuserid --sort time d --report " to view the first job in report form (truncated to your screen).

#### Usage

zowe ejes query <command>

Where <command> is one of the following:

#### Examples

- Customize status table output.

(1) Limit to owners beginning with "rb". If not specified, the owner will be the same as your logon id. To specify all, use an asterisk(*). (2) Filter rows to display only abends. (3) Show only relevant columns and arrange in the order desired. (4) Limit the number of lines, including headers, to 10. (5) Remove header lines.

Example:

      * `$  zowe ejes query st --owner rb* --metafilter "maxcomp eq ab*"
         --showcols "jobname maxcomp status jobid rec" --lines 10 --header off`

- Display a table of data sets for a specific job on the spool by job id.

(1) Select job 0437107. The asterisk causes the positional job name to be ignored. (2) Display a child table by table type. Data sets status is "s" on the status table.

Example:

      * `$  zowe ejes query st --select "* j0437107" --table s`

- List the available table types for the child table.

The "list" argument may be used on any option. A table for that option will be displayed and any other work will stop. The table may display available tables, reports, columns, for positional input fields depending on the option.

Example:

      * `$  zowe ejes query st --table list`

- Provide detailed help for the metafilter option.

The "help" argument may be used on any option. Help for the option will be displayed and any other work will stop.

Example:

      * `$  zowe ejes query hchk --metafilter help`

#### Commands

- activity | ac - - Activity table
- apfds | apf - - APF-authorized libraries table
- class | cl - - Job classes table
- djc | dj - - JES3 dependent job network control table
- dynexit | dynex | dynx - - Dynamic exits table
- enclave | enc - - Enclaves table
- enq - - ENQ table
- enqc - - ENQ contention table
- enqd - - ENQ SYSDSN resources table
- fss - - FSS (Function Subsystems) table
- group | gr - - Job class groups table
- hcheck | hchk | hc - - Health check table
- hold | h - - Hold table
- init - - JES2 initiators table
- input | i - - Input table
- jesplex | jesp - - JESplex table
- jgroup | jg - - JES2 job groups table
- line | li - - JES3 dependent job network control table
- list - - List primary tables you are authorized to use.
- lnklst | lnkl | lnk - - Link list data sets table
- lpalst | lpal | lpa - - Link pack data sets table
- mds | md - - JES3 MDS table
- memusage | memuse | memu - - Memory usage table
- mounts | mount | mo - - z/OS UNIX mounts table
- netconn | netc | nc - - Network connections table
- netserv | nets - - Network servers table
- nje - - JES3 NJE sysout table
- node | node | no - - Node table
- offload | off - - JES2 spool offloader device table
- pageds | pag | page | paged - - Page data set resources table
- parmlib | parml | parm - - Parameter library data sets table
- printer | pr - - Printer and punch table
- proclib | procl | proc - - Proclib data sets table
- pstatus | pstat | ps - - UNIX process status table
- resmon | resm | rmon | rm - - JES2 resource monitor table
- resource | reso - - Workload manager resource table
- schenv | sch - - Workload manager scheduling environments table
- session | ses - - (E)JES session table
- spart | spa - - Spool partitions table
- spvol | spv - - Spool volume extents table
- status | st - - Job status table
- subsys | subsy | subs - - MVS Sysplex Subsystems
- symbol | sym - - System symbols table
- syscls | sysc - - Sysout classes table
- sysplex | sysp | sys - - Sysplex members table
- sysreq | sysr | sr - - System requests table
- writer | w | output | o - - Writer (Output) table
- zero | z - - JES3 Job zero table