SNAX/APC Application Programming Manual
Application Prototype Simulator
SNAX/APC Application Programming Manual—138786
4-35
REQUEST-TO-SEND (F6)
SEND-DATA (F7)
SEND-DATA sends data to the partner TP by moving data into the SNAX/APC send
buffer. The data is not necessarily transmitted immediately. Subsequent SEND-DATA
verbs concatenate new data with the data already in the send buffer. The data is sent to
the partner TP when the send buffer overflows or when SNAX/APC receives a verb
from the local TP (APS) that explicitly causes the send buffer to be transmitted (such as
CONFIRM, DEALLOCATE, or RECEIVE-AND-WAIT). SEND-DATA completes
when SNAX/APC has placed the data in its send buffer.
Request Fields
User Data
is the field in which you enter the data to send to the partner TP. The data you enter
is encoded in ASCII. If you want to send EBCDIC data, first enter your data in
ASCII and then press SF15, which translates the contents of the User Data field
from ASCII to EBCDIC. If you want to enter hexadecimal data or more than 80
characters of data, you must press F14 (Hex) and use the hexadecimal editor. For
more information, see “The Hexadecimal Editor,” later in this section.
Note that APS automatically fills in the first four bytes of this field with a default
GDS header. The GDS length field is set to 80 (base 10), and the GDS ID field is
set to 12FF (hexadecimal), which specifies that this GDS variable contains user data.
The GDS header is displayed as “~P~~” in the beginning of the field (tilde
characters represent nonprintable characters). You can edit the GDS header by
pressing F14 (Hex) and using the hexadecimal editor.
Data transmitted in a mapped conversation must include the two-byte length field
and the appropriate GDS ID (usually 12FF hexadecimal).
All data sent using this basic verb must begin with the two-byte length field required
by the General Data Stream (GDS) logical record format (whether the conversation
SNAX/APC Application Prototype Simulator (APS) System (T9096D30 15FEB95 21c)
Request: Send_Data Resource ID: 1 0 0 1 0 0
User Data: 123456789012345678901234567890
~P~~This is test data_________
______________________________ Length: _80 (Max 480)
Reply: Send_Data
IPC Return Code: 0 IPC Ok
IPC Return Code Detail: 0 IPC Ok
UOWs In: 0001 UOWs Out: 0001
Header Return Code: 0 RC Ok
Request to Send Ind: N
Request Completed
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16
TPR Aloc Deal TPE R&W RTS SD SE Cnf Cnfd GA Send Prnt Hex Rcov Exit
ActS Dact PRcv RcvI Flsh Gtyp GTP A(T) E(T) Exit