Asynchronous Terminals and Printer Processes Programming Manual

PROCEDURE CALLS FOR ACCESSING PRINTERS
WRITE
If you make the following call to a printer with line width of
132 characters:
CALL WRITE ( FILE^NUM, PTR^BUFFER, 200 );
IF <> THEN ...;
an error occurs. The first 132 characters of PTR^BUFFER are
printed. On the return from WRITE, the condition code indicator
is set to CCL. A subsequent call to FILEINFO would return error
21 (ILLEGAL COUNT SPECIFIED).
If you make the following call to a printer with line width of
132 characters:
CALL WRITE ( FILE^NUM, PTR^BUFFER, 40 );
IF <> THEN ...;
40 characters of PTR^BUFFER are printed starting at column 1;
columns 41 through 132 are left blank.
If you include the
count-written
parameter in the call to WRITE,
a count of the number of characters actually printed is returned.
|
|
NOTE |
|
The maximum allowable write count for 5512, 5515/5516, and |
5573 printers is 247 bytes. If the write count exceeds |
this value, the I/O process returns a bad count error. |
|
November 1987 6-3