SAS Quality Knowledge Base for Contact Information 27
Birth Number | |||
---|---|---|---|
Description | The Birth Number parse definition parses birth numbers into a set of tokens. | ||
Output Tokens | Year of Birth Month of Birth Day of Birth Order Number Additional Info |
||
Example 1 | Input | Output Token | Output |
535731/456 | Year of Birth | 53 | |
Month of Birth | 57 | ||
Day of Birth | 31 | ||
Order Number | 456 | ||
Additional Info | |||
Example 2 | Input | Output Token | Output |
9312236076 | Year of Birth | 93 | |
Month of Birth | 12 | ||
Day of Birth | 23 | ||
Order Number | 6076 | ||
Additional Info | |||
Example 3 | Input | Output Token | Output |
084053/2524 | Year of Birth | 0 8 | |
Month of Birth | 4 0 | ||
Day of Birth | 5 3 | ||
Order Number | 2 5 2 4 | ||
Additional Info | |||
Remarks | This parse definition for Birth Number requires the input data to be in the form of YYMMDDOOO where YY is year of birth, MM is month of birth, DD is day of birth, and OOO is order number, which consists of three-digits if the birth year is before 1954 and four-digits if later than 1954. Month of birth values 01 through 12 are male and 51 through 62 are female. If the input string does not contain a correctly formatted birth number, the output has a NO SOLUTION parse result and is parsed based on the order of the input digits, as shown in Example 3, with spaces between the digits. The recommended procedure is to first determine if the input string can be parsed correctly, then apply parsing to the correctly formatted input data only. To determine if the formatting is correct, you can do either of the following: 1. In the Parse node, assign a Result Code field to capture whether a solution was found. Process output with NO SOLUTION results separately. 2. Run Gender Analysis on the input string using the Gender Analysis definition for Birth Number. Input strings that get U (Unknown) results cannot be parsed as a correctly formatted birth number. |
Documentation Feedback: yourturn@sas.com |
Doc ID: QKBCI_CSCZE_Parse_BirthNumber.html |