SAS Quality Knowledge Base for Contact Information 27

Postal Code (with Country Code)

Standardization Definition

Postal Code (with Country Code)
Description The Postal Code (with Country Code) standardization definition standardizes postal codes and adds a domestic country code, unless there is already a country code in the input.
Examples Input Output
邮编242500 CN-242500
242-500 CN-242500
CN 100052 CN-100052
FR 12345 FR-12345
37100 CN-037100
Remarks Identifies domestic postal code patterns with potentially missing leading zeroes and adds them to the input, as in the final example. Uses international formatting, with no spaces.