Previous Topic Next topic Print topic


Calling AMB and Customizer User Rules

Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

To call a rule from a program, you assign a rule call to an Online Express control event, or, if writing programs in the Program Painter, you write the rule call. In each call, you pass values to variables in the rules according to your program requirements. For example, you could write a rule that performs a loop and builds a table, based on the size, data name, and PIC clause values that you pass to it.

Use one of the following methods, depending on which AMB tool you use to define your program.

AMB Component Invocation Method
Online Express Write a rule call using the various code options available in Online Express, such as Local Code or Miscellaneous User Code. Or, you can assign an existing rule call as the action for a control event or control point, using the Action/Event Editor or DB Call Tailoring window. In the call, you can pass values to rule variables.
Program Painter Write a rule call at the desired program location. In the call, you can pass values to rule variables.
Previous Topic Next topic Print topic