Create Filter (CRTFTR)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Create Filter (CRTFTR) command creates a filter object of the specified type. Filters contain selection entries and action entries. A filter allows the user to categorize data into groups and specify special actions to be applied to each group. The typical user is a system programmer or operator responsible for system management.

Top

Parameters

Keyword Description Choices Notes
FILTER Filter Qualified object name Required, Positional 1
Qualifier 1: Filter Name
Qualifier 2: Library Name, *CURLIB
TYPE Type *ALR, *PRB Required, Positional 2
TEXT Text 'description' Character value, *BLANK Optional
AUT Authority Name, *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE Optional
Top

Filter (FILTER)

Specifies the qualified name of the filter that is created.

The library specified must be on *SYSLIB (primary system ASP). A library on an independent auxiliary storage pool (IASP) cannot be specified since CRTFTR does not support IASP. The possible library values are:
*CURLIB
The current library is used to locate the filter. If no library is specified as the current library for the job, the QGPL library is used.
library-name
Specify the name of the library where the filter is located.
filter-name
Specify the name of the filter that is to be created.
Top

Type (TYPE)

Specifies the type of filter being created. The type of filter determines which applications can use the filter and the type of entries that can be placed in the filter.

*ALR
The filter is an alert filter. The i5/OS Alert Manager can use the filter on alerts that it receives or generates.
*PRB
The filter is a problem filter. The i5/OS Problem Manager uses the filter on problem entries that are created, changed, or deleted.
Top

Text 'description' (TEXT)

Specifies text that briefly describes the object.

*BLANK
Text is not specified.
character-value
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Authority (AUT)

Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.

*LIBCRTAUT
The system determines the authority for the object by using the value specified for the Create authority (CRTAUT) parameter on the Create Library command (CRTLIB) for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
*CHANGE
The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
*ALL
The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
*USE
The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
*EXCLUDE
The user cannot access the object.
name
Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
Top

Examples

CRTFTR   FILTER(MYLIB/MYFILTER)  TYPE(*ALR)  AUT(*CHANGE)
         TEXT('My filter')

This command creates an alert filter called MYFILTER in the library MYLIB. The type is *ALR and the public has *CHANGE authority to the filter, described as 'My filter'.

Top

Error messages

*ESCAPE Messages

CPF2108
Object &1 type *&3 not added to library &2.
CPF2112
Object &1 in &2 type *&3 already exists.
CPF2113
Cannot allocate library &1.
CPF2151
Operation failed for &2 in &1 type *&3.
CPF2182
Not authorized to library &1.
CPF2283
Authorization list &1 does not exist.
Top