Set Filter (QOLSETF) API

  Required Parameter Group:


  Threadsafe: No

The Set Filter (QOLSETF) API activates and/or deactivates one or more filters for a link that is currently enabled in the job in which the application program is running. The application program must provide the required filter information in the output buffer that was created when the link was enabled. The output buffer descriptor is not used. See Format of Filter Information for details on the format of the filter information in the output buffer.

Filters contain inbound routing information that user-defined communications support uses to route incoming data to a link that is enabled by an application program. The incoming data that is routed depends on the type of communications line the link is using. On an X.25 communications line, the incoming data is an incoming switched virtual circuit (SVC) call. On a token-ring, Ethernet, wireless, or FDDI communications line, the incoming data is the actual data frame.

The type of filters activated for a link determine the way incoming data is routed to that link.

Note: All active filters for a link must be of the same type.

For links using a token-ring, Ethernet, wireless, or FDDI communications line, there are three types of filters. The following list of filters is from most to least restrictive:

For links using an X.25 communications line, there are two types of filters. The following list of filters is from most to least restrictive:

The order for checking filters when multiple links are using the same communications line, is from most to least restrictive. For example, suppose two user-defined communications application programs (application program A and B) in different jobs each have a link enabled that use the same token-ring communications line. Further suppose that application program A has activated a filter on DSAP X'22' and application program B has activated a filter on DSAP X'22' and SSAP X'22'. If a data frame comes in with a DSAP of X'22' and an SSAP of X'22', application program B will receive the frame. If a data frame comes in with a DSAP of X'22' and an SSAP not equal to X'22', application program A will receive the frame.


Authorities and Locks

None.


Required Parameter Group

Return code
OUTPUT: BINARY(4)

The recovery action to take. See Return and Reason Codes.

Reason code
OUTPUT; BINARY(4)

The error that occurred. See Return and Reason Codes.

Error offset
OUTPUT; BINARY(4)

The offset from the top of the output buffer to the incorrect filter header data or to the incorrect filter in the filter list.

The content of this parameter is only valid for 83/1999 and 83/3003 return/reason codes.

Communications handle
INPUT; CHAR(10)

The name of the link on which to perform the filter operation.


Format of Filter Information

The application must provide all filter information in the output buffer that was created when the link was enabled. The application should treat the output buffer as one large space with the size equal to the number of data units created for the output buffer multiplied by the size of each data unit. This information is returned by the QOLELINK API when the link was enabled.

The filter information in the output buffer is made up of two parts. The first portion starts at offset 0 from the top of the output buffer and contains filter header data. The second portion of the filter information starts immediately after the filter header data in the output buffer and contains the filters that make up the filter list.

Filter Header Data

The format of each filter in the previous list of filters is described in the following table. All filters in the list of filters must be contiguous with each other and be of the type specified in the filter type field in the filter header data.

X.25 Filters (Filter Types X'00' and X'01')

LAN Filters (Filter Types X'02', X'03', and X'04')

LAN Filters (Filter Type X'08')



General Rules for Using Filters

The following is a list of rules for activating and deactivating filters:


Return and Reason Codes



Error Messages



API introduced: V2R1

[ Back to top | Communications APIs | APIs by category ]