User`s guide

148 DC 900-1340I
BSC Programmers Guide
DLI_PROT_SEND_TRANS_DATA_EOM to send transparent data. The client can send transpar-
ent data in either ASCII or EBCDIC mode. In either mode, the data is not code-con-
verted. The blocks are preceded by DLE STX and terminated with either DLE ETB or
DLE ETX. The DLE characters are not counted in the block size. The BSC 2780/3780
software performs all the required DLE insertion and deletion for transparent data
streams. Refer back to Section 2.3 on page 38 for examples of transparent data.
To automatically send transparent data with EOM, set writeType = “transparent” in the
DLI configuration file (Table 7–2 on page 191).
5.4.3.3 Transparent 2780 Record Data
Use the dlWrite function with the pOptArgs.usProtCommand field set to
DLI_PROT_SEND_2780_DATA or DLI_PROT_SEND_2780_DATA_EOM to send transparent 2780
record data. The client can send transparent 2780 record data in either the ASCII or
EBCDIC character set mode. The data is not code-converted in either mode. Each
record must be preceded by a two-byte count equal to the number of bytes (characters)
in that record. A union declaration in C such as the following can be helpful for insert-
ing the two separate count bytes into a byte-oriented character buffer:
union {
short word;
char byte [2];
} count;
The client sends data buffers with the format shown in Figure 5–4:
Figure 5–4: Client Transparent 2780 Record Format
count 1record 1count 2record 2count n record n