State (%STATE) Macro

Applies to LoadComplete 4.97, last modified on May 20, 2019


The State macro is used to insert state names into strings generated with the Custom String generator.

The macro is an analog of the State data generator.


The macro has the following syntax:

%STATE(Format, *xN)



Optional parameter. Specifies the format of state names to be generated:

Value Description
FULL Default. The macro generates full state names (for instance, Florida, Texas and so on).
(or ABBR)
The macro generates abbreviated state names (for instance, FL, TX and so on).

The values are case-insensitive.

If you specify any other value, the macro will use the default format - FULL.


Optional parameter. Specifies the number of possible repetitions of each value in series of generated strings. N is a positive number that specifies the number of repetitions: 1, 2, 3, and so on. The default parameter value is *x1 (no repetitions).


The following example demonstrates how to use the State macro:

  • %STATE(FULL, *x2)

    Generates full state names. Each of the names will be repeated twice in the series of generated custom strings.


    Generates abbreviated state names.

  • %STATE

    Generates full state names (in this case, the default parameter value is used).

  • %STATE(COUNTY) <— Invalid value

    Generates full state names (in this case, the default parameter value, FULL, is used).


See Also

Macro Reference
Custom String Generator Rules
Custom String Generator
State Generator
Using Data Generators
Generating Values

Highlight search results