Permitted Alphabet Subtypes

Permitted alphabet subtypes restrict the characters that appear in values of a defined type. Permitted alphabet subtypes can be used only with parent types drawn from character string types.

Example

As shown in the the following examples, the word "FROM" is used to introduce the list of possible characters that appear in values of the defined type. The values are separated by a vertical bar ("|").

AreaCode ::= SEQUENCE {
       firstDigit  IA5String (FROM
              ("2"|"3"|"4"|"5"|"6"|"7"|"8"|"9")),
       secondDigit IA5String (FROM
              ("0"|"1")),
       thirdDigit  IA5String (FROM
              ("1"|"2"|"3"|"4"|"5"|"6"|"7"|"8"|"9"))
}
AreaCodeWith1994Enhancements ::= SEQUENCE {
        firstDigit  IA5String (FROM ("23456789")),
        secondDigit IA5String (FROM ("01")),
        thirdDigit  IA5String (FROM ("1".."9"))
}

Related Topics