HP (Hewlett-Packard) IBM AS/400 Printer User Manual


 
B-5
1. Define the desired strings using the SET SERVER STRING stringnumber string com-
mand (the same command used to define EOT and BOT strings). For example:
SET SERVER STRING 15 “\01”
SET SERVER STRING 16 “This is a test\0D”
sets string 15 as <CONTROL-A> and string 16 as “This is a test”<RETURN>. The command
SHOW SERVER STRINGS shows the string settings.
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 de-
leted 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>.
***End of Appendix B***