Social Security Number (%SSN) Macro

Applies to ReadyAPI 3.10, last modified on October 07, 2021

The Social Security Number macro is used to insert social security numbers numbers into the strings generated by a data source using the Custom String data generator.

The macro is an analog of the Social Security Number data generator.

Syntax

The macro has the following syntax:

%SSN(Format)

Parameters

Format

Specifies the name of the country, for which social security numbers will be generated. Currently, there is only one possible value – US that corresponds to the United States. It is also the default value of the parameter. You cannot change it.

The parameter is case-insensitive.

Examples

The following example demonstrates the usage of the Social Security Number macro:

Social Security Number: %SSN(US)

Example: Social Security Number macro in Data Generator

Click the image to enlarge it.

Generates a string containing a social security number used in the United States.

Remarks

For more information on adding macros to custom strings, see About Custom String Generator.

For more information on general rules used for specifying macro parameters, see Custom String Generator Rules.

See Also

Social Security Number Generator
Custom String Generator
Macro Reference

Highlight search results