Appendix B. Sample Tape Communications And Programs; Writing Basic Programs On Tape; Writing Other Language Programs On Tape - IBM 5100 Communications Manual

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

Appendix B. Sample Tape Communications and Programs
WRITING BASIC PROGRAMS ON TAPE
A BASIC program can be written on tape with the BASIC corrlmand:
SAVE file number SOURCE
The program is written on tape in character record format and can then be
transmitted to the remote system during communications by using the
~OPEN
and
§!TAPEIN commands.
During communications, BASIC programs residing at the remote system can be
written on tape by using the LIST command. The size of the program is limited
by the size of the extended display, and a program larger than the extended display
cannot be listed in its entirety.
Data transmitted from a remote system to tape for later processing during BASIC
language operations must conform to a specific format:
1.
Character data must be enclosed in single quotation marks and blocked
together in segments that contain a maximum of 18 characters, for example:
'THE SQUARE OF X IS', 'GREATER THAN V'
An apostrophe must be indicated by two single quotation marks, for example:
'DON"T'
2.
Numeric data must also be formatted in strings of less than
19
characters;
however, no quotation marks are used. For example:
11,12,13,14,15
WRITING OTHER LANGUAGE PROGRAMS ON TAPE
Other language programs such as FORTRAN or PL/1 can be entered from the
5100 keyboard in the extended display and then written on tape and transmitted
(see
Composing Messages Offline).
Appendix B. Sample Tape Communications and Programs
35

Advertisement

Table of Contents
loading

Table of Contents