A Embedded Basic routine must be written as an external subroutine that accepts a single parameter. When the routine is called by the system, the value of this parameter depends on the way in which it is called:
Within the Embedded Basic subroutine, you can access other information about the file and the item by calling the ACCESS function. In particular, if you are writing a Dictionary Subroutine, you can use ACCESS(31) to return any unprocessed data remaining after the current conversion code has been parsed – in this way, you can pass parameters into the subroutine.
If you need to pass data between Embedded Basic routines, use variables in a named COMMON area.
Embedded Basic Subroutines
Embedded Basic Examples
Debugging Embedded Basic Subroutines
How to Associate a Trigger with a File
Triggers Dos and Don’ts