Returns a character value after standardizing casing, spacing, and format, and then applies a common representation to certain words and abbreviations.
Valid in: | DATA step, PROC SQL, and SCL |
Requirement: | If specified, the locale must be loaded into memory as part of the locale list. |
specifies a character constant, variable, or expression that contains the value that is standardized according to the specified standardization definition.
specifies the name of the standardization definition. The definition must exist in the locale that is used.
specifies a character constant, variable, or expression that contains the locale name.
Default | The default locale is the first locale in the locale list. If no value is specified, the default locale is used. |
data _null_; length name stdName $ 50; input name $char50.; stdName=dqStandardize(name, 'Name'); put 'Name:' @10 name / 'StdName:' @10 stdName /; datalines; HOUSE, KEN House, Kenneth House, Mr. Ken W. MR. KEN W. HOUSE ; run;
Name: HOUSE, KEN StdName: Ken House Name: House, Kenneth StdName: Kenneth House Name: House, Mr. Ken W. StdName: Mr Ken W House Name: MR. KEN W. HOUSE StdName: Mr Ken W House