TRANSFER Programming Manual

A Sample TRANSFER Client
Designing and Writing a Client
9–20 069138, Update 1 to 040970 Tandem Computers Incorporated
A Sample TRANSFER
Client
The TRANSFER program described on the following pages is an example of a mail
client that performs the following operations:
Initiates interaction between the user and the application
Assembles packages and transmits them to recipients
Receives and reads packages from other senders
Terminates interaction between the user and the application
Despite its simplicity, this client illustrates some of the most important functions
available with the TRANSFER delivery system, shows how SCREEN COBOL screens
provide interaction between a client and a correspondent, and demonstrates how and
when several commonly used UOWs are issued.
Note This code is intended as an example only. It is meant to be used for reference purposes, and does not
necessarily show the best or only way for you to code your particular application.
UOWs The sample client sends the following UOWs to the TRANSFER Interactive Server
(TISERV):
ACK-RECEIPT END-SESSION START-SESSION
ADD-ITEM-REC GET-ITEM-DESCR SUBMIT-PKG
ADD-RECIP GET-ITEM-REC UNSAVE-ITEM
CREATE-ITEM SCAN-FOLDER