Work with Filters (WRKFTR)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Filters (WRKFTR) command allows you to work with and print a list of filters, to change and delete specified filters, to work with selection and action entries contained in specified filters, and to create new filters.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
FILTER Filter Qualified object name Required, Positional 1
Qualifier 1: Filter Generic name, name, *ALL
Qualifier 2: Library Name, *LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR
Top

Filter (FILTER)

Specifies the qualified name of the filter that is shown.

The possible library values are:

*LIBL
All libraries in the library list for the current thread are searched. All objects in these libraries with the specified object name are shown.
*CURLIB
The current library is searched. If no library is specified as the current library for the job, the QGPL library is used.
*USRLIBL
Only the libraries listed in the user portion of the library list are searched.
*ALL
All libraries in the system, including QSYS, are searched.
*ALLUSR
All user libraries are searched. All libraries with names that do not begin with the letter Q are searched except for the following:

#CGULIB     #DSULIB     #SEULIB
#COBLIB     #RPGLIB
#DFULIB     #SDALIB

Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:

QDSNX       QRCLxxxxx   QUSRIJS     QUSRVxRxMx
QGPL        QSRVAGT     QUSRINFSKR
QGPL38      QSYS2       QUSRNOTES
QMGTC       QSYS2xxxxx  QUSROND
QMGTC2      QS36F       QUSRPOSGS
QMPGDATA    QUSER38     QUSRPOSSA
QMQMDATA    QUSRADSM    QUSRPYMSVR
QMQMPROC    QUSRBRM     QUSRRDARS
QPFRDATA    QUSRDIRCL   QUSRSYS
QRCL        QUSRDIRDB   QUSRVI

  1. 'xxxxx' is the number of a primary auxiliary storage pool (ASP).
  2. A different library name, in the format QUSRVxRxMx, can be created by the user for each previous release supported by IBM to contain any user commands to be compiled in a CL program for the previous release. For the QUSRVxRxMx user library, VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
library-name
Specify the name of the library where the filters are located.
*ALL
All filters in the specified library are listed.
filter-name
Specify the name of the filter that is shown.
generic*-filter-name
Specify the generic name of the filter. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. If a generic name is specified, then all filters with names that begin with the generic name, and for which you have authority, are shown. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete filter name.
Top

Examples

WRKFTR   FILTER(MYLIB/MY*)

This command shows a list of filters whose names begin with 'MY' in library MYLIB. From the list shown, you can change, delete, or work with the entries in any or all of the filters shown. You can also create a new filter.

Top

Error messages

*ESCAPE Messages

CPF812F
Filter damaged.
CPF91E8
Internal processing error occurred.
CPF9802
Not authorized to object &2 in &3.
CPF9803
Cannot allocate object &2 in library &3.
CPF9807
One or more libraries in library list deleted.
CPF9808
Cannot allocate one or more libraries on library list.
CPF9830
Cannot assign library &1.
Top