EMS Manual
Compiled Filters
EMS Manual—426909-005
5-4
Creating a Compiled Filter
Loading Standard Definitions
You must load the standard definitions of SPI and of each subsystem whose tokens
you use. These TACL statements load the standard definitions for SPI and EMS:
#PUSH dummy
#LOAD /KEEP 1, LOADED dummy/ $SYSTEM.ZSPIDEF.ZSPITACL
#LOAD /KEEP 1, LOADED dummy/ $SYSTEM.ZSPIDEF.ZEMSTACL
#POP dummy
You could also use this ATTACHSEG TACL command:
ATTACHSEG SHARED $SYSTEM.ZSPISEGF.ZxxxTACL :Zxxx
#SET #USELIST [#USELIST] :Zxxx
where Zxxx is either ZSPI or ZEMS.
If your site places the standard definition files on another volume, change $SYSTEM to
the name of the other volume.
You can enter these TACL statements, exactly as shown, at the TACL that runs the
filter compiler. You can also include the TACL statements in the filter specification if you
surround each statement with brackets.
For information on how to create and attach a TACL segment file—a fast way to save
and restore standard definitions—see the TACL Reference Manual.
Compiling a Filter Specification
After you have loaded the standard definition files that your filter requires, you can
compile the filter.
To compile the filter specification shown in Sample Filter Specification
on page 5-3 (in
EDIT file FWDFLT) and to place the compiled filter in object file OFILTER, enter this
TACL command:
EMF / IN FWDFLT / OFILTER
The compiler listing is:
EMS Filter Compiler - T9634C00 - (15JUL87) - (19JUN87)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1987
1 FILTER forward^only^local^events;
2 BEGIN
3 IF ZEMS^TKN^SYSTEM = 116 THEN
4 PASS
5 ELSE
6 FAIL;
7 END;
8
Object file name is $HUBS.MYSUB.OFILTER
Caution. Always re-create TACL segment files that save standard definitions whenever your
site installs a new release of the programmatic interface. Using private copies of such files can
cause errors if they are not kept current.