Calling OLIST from an application
You can invoke OLIST from an application or CLIST. You can invoke the OLIST selection list, a new or existing permanent OLIST, or a temporary OLIST, with the default process (Edit, Browse, or View) of your choice. For example, to invoke a temporary OLIST of all data sets matching the level USER2.TEST, you can issue a command like this:
ISPEXEC SELECT PGM(IQIPLST) PARM('USE2.TEST.*') NEWAPPL(ISR) PASSLIB
The parameters passed to the IQIPLST program are the same parameters you can pass to the OLIST general command. For example, to obtain a temporary OLIST with the libraries allocated to STEPLIB you can enter the command:
OLIST @DD STEPLIB
Similarly you can invoke the same OLIST from a REXX exec with the statement:
ISPEXEC SELECT PGM(IQIPLST) PARM('@DD STEPLIB')
NEWAPPL(ISR) PASSLIB
The following are acceptable OLIST parameters:
Parameter | Explanation |
---|---|
= | Invoke the default (last) referenced permanent OLIST |
* | Display the OLIST reference list |
DSNpatt,VOLpatt | Opens a temporary list showing cataloged data sets matching
the specified DSN pattern (with wildcards). If a volume pattern is
specified, only data sets cataloged to the specified volumes are listed.
Examples:
|
Name | Invoke a previously saved OLIST. OLIST names follow the naming conventions of member names. |
@DD,ddname
@LISTA,ddname |
Opens a temporary OLIST displaying allocated data sets. If a ddname is specified, only libraries allocated to the specified DD statement are listed. |
@H | Opens a temporary OLIST showing the history list (the list of last 100 data sets referenced by the user). |
@LISTB,DSNpatt | Opens a temporary list of generation data sets of generation
group names matching the GDG base pattern. Examples:
|
@LISTC,DSNpatt | Opens a temporary list of cataloged entries (objects). Example:
|
@LISTG,DSNpatt
@LISTGDG,DSNpatt |
Opens a temporary list of Generation-Data-Sets by DSN pattern.
Examples:
|
@LISTM,DSNpatt
@LISTARC,DSNpatt |
Opens a temporary OLIST with the list of migrated (or archived)
data sets matching the specified volume pattern. Both commands are
similar and are offered for installations with HSM, ASM2, or DMS systems.
Examples:
|
@LISTP,DSNpatt | Opens a temporary list of all Page-Space files by DSN pattern
Examples:
|
@LISTS,keyword,value | Opens a temporary OLIST displaying system data sets depending
on the parameters. Examples:
|
@LISTT,DSNpatt | Opens a temporary list of Tape Files by DSN pattern. Requires
a volume pattern and the first character cannot be a wildcard. Examples:
|
@LISTV,VOLpatt,DSNpatt | Opens a temporary list of files (including uncataloged) by
VOLSER pattern and DSN pattern. You must supply a volume serial or
pattern. Example:
|
@LISTW,DSNpatt
@LISTVS,DSNpatt |
Opens a temporary OLIST of VSAM Clusters by DSN pattern. Example:
|
@LISTZ,DSNpatt | Opens a temporary OLIST displaying SMP/E Zone VSAM clusters
by DSN pattern. Note: The .CSI implied suffix does not have to be
included in the pattern.
Example:
|