Permanent conversion
The mode of TKN provides permanent conversion of a token.
Generally, when you are making a permanent conversion, you specify a retype argument that applies to the suffix with CONVERT_S or the prefix with CONVERT_P or CONVERT_PL. For example, assume that you are using the following CONVERT_S statement:
CONVERT_S [1] @SUFFIX.TBL TKN T
You also have an operand value of HESSESTRASSE and a table entry in SUFFIX.TBL of:
STRASSE STRASSE 800.0
HESSE retains the class ? because you did not specify a fifth argument to retype the body or root of the word, and STRASSE is given the type for the suffix, such as T, for street type. To perform further actions on these two tokens, you need a pattern of:
? | T
If no retype class is given, both tokens retain the original class ?.
You might want to retype both the prefix or suffix and the body. When checking for dropped spaces, a token such as APT234 can occur. In this case, the token has been found with a class of < (leading alphabetic character) and an optional fourth argument can retype the prefix APT to U for multiunit and an optional fifth argument can retype the body 234 to ^ for numeric. In the following example, the PREFIX.TBL table contains an APT entry:
CONVERT_P [1] @PREFIX.TBL TKN U ^
If you want to retype just the body, you must specify a dummy fourth argument that repeats the original class.