OSI/AS Programming Manual
Parameter Structures
DDL Definitions
A–8 056783 Tandem Computers Incorporated
ZAPS-DDL-DATA-ELEMENT-HDR describes the length and type of a user data
element in the
user-data
parameter. For further information on the use of this
structure, see ZAPS-DDL-DATA-HDR in this subsection and “Sending and Retrieving
User Data” in Section 2.
DEFINITION ZAPS-DDL-DATA-ELEMENT-HDR.
02 ZLEN TYPE ZAPS-DDL-INT2.
02 ZTYPE TYPE ZAPS-DDL-ENUM1.
02 ZPCID TYPE ZAPS-DDL-PRES-CNTXT-ID.
02 ZADDR TYPE ZAPS-DDL-INT2.
02 FILLER PIC X(14).
END
The valid values for the ZTYPE 02-level field are as follows:
CONSTANT ZAPS-VAL-DATA-TYPE-VALUE VALUE 1.
CONSTANT ZAPS-VAL-DATA-TYPE-SAT VALUE 1.
CONSTANT ZAPS-VAL-DATA-TYPE-OCTET VALUE 2.
CONSTANT ZAPS-VAL-DATA-TYPE-PDV-SAT VALUE 3.
CONSTANT ZAPS-VAL-DATA-TYPE-PDV-OCTET VALUE 4.
CONSTANT ZAPS-VAL-DATA-TYPE-VALUE-AD VALUE 5.
CONSTANT ZAPS-VAL-DATA-TYPE-PDV-SAT-AD VALUE 6.
CONSTANT ZAPS-VAL-DATA-TYPE-PDV-OCT-AD VALUE 7.
ZLEN is the length, in bytes, of the user data in this data element (not including the
header).
ZTYPE describes the type of data in the element header:
ZAPS-VAL-DATA-TYPE-VALUE signifies either that this element is session data
or that the PDV type is set to single ASN.1 type. This value is used for sending
session or presentation data and is present for receiving session or presentation
data.
ZAPS-VAL-DATA-TYPE-SAT signifies that this element PDV type is set to single
ASN.1 type. This value is only present for receiving presentation data.
ZAPS-VAL-DATA-TYPE-OCTET signifies that this element PDV type is set to
octet-aligned. This value is only present for receiving presentation data.
ZAPS-VAL-DATA-TYPE-PDV-SAT signifies that this element PDV type is set to
single ASN.1 type. This value is only used for sending presentation data.
ZAPS-VAL-DATA-TYPE-PDV-OCTET signifies that this element PDV type is set
to octet-aligned. This value is only used for sending presentation data.
ZAPS-VAL-DATA-TYPE-VALUE-AD signifies either that this element is session
data or that the PDV type is set to single ASN.1 type and that the contents of this
element are located at the address specified in the ZADDR field. This value is for
use only by typed data and data request primitives; it is only used for sending
session or presentation data.