Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Printer-destined files

Printer-destined files are PL/I files with the PRINT attribute and record files declared with the CTLASA option of the ENVIRONMENT attribute. You can either print these files at your workstation or upload them to your mainframe.

The first character of each record is an American National Standard Institute (ANSI) carriage control character (see Table 11).

For STREAM files, PL/I inserts the character, based on the SKIP, LINE, or PAGE option (or control format item) of the PUT statement. For RECORD files with CTLASA, your program must insert the control characters in the first byte of each record.

If you want to print the data set from your workstation, select the ASA(N) option (it is the default). To keep the format for printing at the mainframe, select ASA(Y), which causes the control characters to be left untranslated.

Table 11. ANSI print control characters
Character Meaning
(blank)
0
hyphen (-)
+
1
2
3
4
5
6
7
8
9
A
B
C
Skip 1 line before printing
Skip 2 lines before printing
Skip 3 lines before printing
Do not skip any lines before printing
Skip to next page before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing
Skip 3 lines before printing

The translation to IBM Proprinter control characters is as follows:

Table 12. IBM Proprinter equivalents to ANSI control characters
ANSI Character Proprinter Characters (in hexadecimal)
(blank)
0
-
+
1
2 to 9, A to C
0A
0A 0A
0A 0A 0A
0D
0C
0A 0A 0A
Note:
Where:
0A = Line feed
0C = Form feed
0D = Carriage return

Only the first five characters listed are translated by PL/I; the others are treated as hyphens (-).

Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide