B-8 Using Services
2. Enable filter 1 on the desired service with the SET
SERVICE
servicename
FILTER 1 command. The
command SHOW SERVICE displays which filters are
enabled on the services, and the SHOW SERVICE FILTER
displays the filter settings.
3. Define the service with the desired match string and
replacement string with the following commands:
SET SERVICE
servicename
FMS
matchnumber
SET SERVICE
servicename
FRS
replacenumber
where matchnumber and replacenumber are the numbers
of the strings defined in step 1. Note that if the match
string is set to 00, the default match string <LINEFEED>
and replacement string <CARRIAGE RETURN><LINEFEED>
will be used. If the replacement string is set to 00 (and
the match string is not zero), then the replacement is
NULL, and any matches are just deleted from the input
stream.
4. As an example of the use of filter 1, in certain types of
IBM CICS print jobs, pages end with a <CONTROL-A>.
By using filter 1, you can substitute each occurrence of
<CONTROL-A> with <FORMFEED>. This would be
implemented as follows on a service called “CICS”:
SET SERVER STRING 12 “\01”
SET SERVICE CICS FILTER 1
SET SERVICE CICS FMS 12
SET SERVICE CICS FRS 11
When jobs are printed to the CICS service, all occurrences of
<CONTROL-A> will be replaced with <FORMFEED>. Note that
filter 11 is predefined as <FORMFEED>.