Information icon IBM Information Server, Version 8.1
Feedback

Simple conditional values

A simple condition is expressed by the usual pattern operand followed by an equal sign and a value.

Alphabetic values must be in double quotes. A condition to test for the presence of a token with value MAPLE followed by a street type is:

*? = "MAPLE" | T

If the word SOUTH is in the classification table, you can test explicitly for SOUTH by using D = "SOUTH" or for any direction with the standard abbreviation S by using D = "S" for the operand.

You enter numeric values without quotes. The following pattern-action set matches to 1000 MAIN but not to 1001 MAIN.

* ^ = 1000 | ?

The equality operator (=) tests both the standardized abbreviation (if the token is found in the .cls file and has an abbreviation) and the original token value for equality to the operand. Two additional operators are available for testing equality to the abbreviation only or the original token value only. These are:

=A= Only tests the abbreviation from the .cls file
=T= Only tests the original token value only

For example, to properly handle AVE MARIA LANE, test for equality with the original token value:

*T =T= "AVE" | +
RETYPE [1] ?

This makes sure that AVE was actually coded and not another value that maps to the same abbreviation leaving input of AVENUE MARIA unchanged. Similarly, use =A= if you only want a test on the abbreviation.


PDF This topic is also in the IBM WebSphere QualityStage Pattern Action Reference.

Update icon Last updated: 2008-09-30