Previous Topic Next topic Print topic


% DEFINE

Specify the rule name and formal arguments in a USERMACS file, or AMB program.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

 % DEFINE $rulename [(&formalarg1[, &formalarg2,
 % ... &formalarg3, ..., &formalarg1000])]
           statementblock
[% END]

Parameters:

&formalarg Formal argument list. Formal arguments receive their values from actual arguments in a rule call. Separate arguments with a comma and optionally one or more spaces. Enclose the argument list in parentheses.

Example:

Define a rule with three formal arguments whose values are supplied by a call that invokes the rule.

% DEFINE $ITEM-MAKER( &MM, &DATANAME, &TAIL)
            .
            .
            .
% END

Rule call

$ITEM-MAKER( 12, 'TEST-ITEM', 'S9(9) COMP SYNC VALUE -1')
Previous Topic Next topic Print topic