TRANSFER Programming Manual

Sample Client Functional Description
Designing and Writing a Client
9–22 069138, Update 1 to 040970 Tandem Computers Incorporated
Step 3: Display the Function Menu screen and branch to the appropriate function.
The Function Menu screen looks like this:
E L E C - M A I L CLIENT
-- FUNCTION MENU --
Select the operation you wish to perform:
F3 -- Read Mail
F5 -- Send Mail
F16 -- Logoff and Return
SF16 -- Logoff and Exit
This screen allows the correspondent to select one of four functions by pressing the
appropriate function key: read mail, send mail, log off and return to the previous
screen, or log off and exit the program.
The code in sp-main-entry is:
PERFORM ONE OF
logon-section, <--- F1 KEY
function-section, <--- F2 KEY
read-mail-section, <--- F3 KEY
discard-mail-section, <--- F4 KEY
compose-mail-section, <--- F5 KEY
post-mail-section, <--- F6 KEY
logoff-section, <--- F16 KEY
logoff-section <--- SF16 KEY
DEPENDING ON key-value.
The correspondent, deciding to compose and send some mail, presses the F5 key.