CRTFTR (Create Filter)

CRTFTR Command syntax diagram

 

Purpose

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.

 

Required Parameters

FILTER
Specifies the qualified name of the filter that is created.

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 created.

filter-name: Specify the name of the filter that is to be created.

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 OS/400 Alert Manager can use the filter on alerts that it receives or generates.

*PRB: The filter is a problem filter. The OS/400 Problem Manager uses the filter on problem entries that are created, changed, or deleted.

 

Optional Parameters

AUT
Specifies the authority given to users who do not have specific authority to the filter, who are not on an authorization list, and whose user group has no specific authority to the filter.

*LIBCRTAUT: The public authority for the filter is taken from the value on the CRTAUT parameter of the target library (the library that is to contain the filter). The public authority is determined when the filter is created. If the CRTAUT value for the library changes after the filter is created, the new value does 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 authority and object management authority. The user can change and perform basic functions on the object. Change authority provides object operational authority and all data authority.

*ALL: The user can perform all operations except those limited to the owner or controlled by authorization list management 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 filter.

*USE: The user can perform basic operations on the filter, such as running a program or reading a file. The user cannot change the filter. *USE authority provides object operational authority, read authority, and execute authority.

*EXCLUDE: The user cannot access the filter.

authorization-list-name: Specify the name of the authorization list used.

TEXT
Specifies the text that briefly describes the filter. More information on this parameter is in Commonly used parameters.

*BLANK: Text is not specified.

'description': Specify no more than 50 characters of text, enclosed in apostrophes.

Example for CRTFTR

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'.

Error messages for CRTFTR

*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.