ASSIGNMENT command
Set any user variable or select a subset of system variables equal to a specific value using the ASSIGNMENT command.
<VariableName> = [arithmetic
expression]For example, you may want to calculate a total monthly expense amount by iteratively adding individual expenses to the total. Assume that your policy extracts an ITEM_COST field from a report and this variable returns the cost of individual expense items as they are listed sequentially in the report. In this case, you could define a variable called MONTHLY_EXPENSES and set MONTHLY_EXPENSES = [MONTHLY_EXPENSES] + [ITEM_COST]. This would iteratively calculate your monthly total.
CURRENT_CYCLE=20030101CURRENT_CYCLE=CURRENT_CYCLE(1)APPLICATION_CYCLE=SYSTEM_DATE
To define an ASSIGNMENT command that sets a variable to a specific value:
You can also assign a function to a variable using the ASSIGNMENT command as shown below:
Concatenated Text String:
If you want to concatenate multiple values and text strings into one long text string, precede each concatenation item with a “+” sign. For example, you might define the string variable ERRMESSAGE as follows in your rule procedure:
ERRMESSAGE = “Error in account” + [ACCOUNT]+ “, office” +[OFFICE] + “, is” + “$” + [ERRORAMT] + “.”
If you output ERRMESSAGE to the Log, it contains the following string value:
Error in account 07712873, office San Francisco, is $37.59.