Chapter 6. Other I/O; Printer I/O; Example Of Printer I/O Statements - IBM 5280 Programmer's Manual

Distributed data system, cobol
Hide thumbs Also See for 5280:
Table of Contents

Advertisement

Printer I/O
Chapter 6. Other I/O
This information supplements that in the 5280 COBOL Language Reference
for the following types of I/O:
Printer I/O
Writing data to a work station screen using SEQUENTIAL I/O
STOP 'literal'. The STOP statement makes it possible to write data to
the status line (line 1) of the work station screen.
DISPLAY and ACCEPT. These two COBOL verbs make possible the
interchange of low volume data between a program and the printer or
work station screen.
Here are guidelines and rules for specifying I/O statements that are to
transmit data to 5280 printers:
1. The format of the FILE-CONTROL paragraph is as follows:
SELECT file-name ASSIGN TO PRINTER ["device address")
[ORGANIZATION IS SEQUENTIAL)
[ACCESS MODE IS SEQUENTIAL)
[FILE STATUS IS data-name)
2. The WRITE ADVANCING facility is supported.
3. The maximum number of characters that can be written on one line is 198.
4. The printer cannot be shared with another program. It will be available to
other programs after a CLOSE has been executed.
Example of Printer I/O Statements
Figure 6.1 gives an example of the input/output statements required to write
data to a printer.
Chapter 6. Other I/O
6- 1

Advertisement

Table of Contents
loading

Table of Contents