z/OS Communications Server: CMIP Services and Topology Agent Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


How an application program specifies ANY DEFINED BY values

z/OS Communications Server: CMIP Services and Topology Agent Guide
SC27-3646-00

The following example shows how the ASN.1 syntax might define an ANY DEFINED BY value.
    A ::= INTEGER
    B ::= BIT STRING
    C ::= BOOLEAN
 
    X ::= SEQUENCE
          {
              a INTEGER,
              b ANY DEFINED BY a --% ANY_TABLE_REF (Y)
          }
--% Y ANY_TABLE ::=
--%       {
--%           1  A,
--%           2  B,
--%           3  C
--%       }
Given this ASN.1, if one wanted to have member b of type X be a bit string, field a must have a value of 2 (as defined by the ANY DEFINED BY resolution table Y). Therefore, an application program formats and sends to CMIP services the following:
Figure 1. Defining a bit string field
Defining a bit string field

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014