Use this record-level keyword to specify the degree of rotation of the text with respect to the way the page is loaded into the printer.
The PAGRTT keyword is valid only for the 3812, 3816, 3820, 3825, 3827, 3835, and 4028 printers. If you do not specify a PAGRTT keyword for a record, the page rotation is set from the value specified on the Create Printer File (CRTPRTF), Change Printer File (CHGPRTF), or Override Printer File (OVRPRTF) commands.
The format of the keyword is:
PAGRTT(0 | 90 | 180 | 270)
The valid parameter values for the keyword are 0, 90, 180, and 270. Zero indicates no rotation. The other values specify the number of degrees rotation clockwise from the 0 degree rotation column.
The PAGRTT keyword does not cause an implicit page eject. If the paper is not on a page boundary, the keyword is not used, and a diagnostic message is issued.
The PAGRTT, SKIP, and SPACE keywords are processed in the following order:
SKIPB
SPACEB
PAGRTT
SPACEA
SKIPA
The PAGRTT keyword remains in effect for the duration of the record format. If a PAGRTT keyword is not used on the next record format, it reverts back to the PAGRTT value specified at the command level.
When a page rotates, the page length and page width are exchanged so that the length becomes the width and the width becomes the length. This exchange cannot be done under the following conditions:
When the length and width cannot be exchanged, a diagnostic message is issued.
Folding and truncation support is not performed when pages rotate. That is, the BLKFOLD DDS keyword and the FOLD parameter on the CRTPRTF, CHGPRTF, or OVRPRTF commands are not used.
Option indicators are valid for this keyword.
The following example shows how to specify the PAGRTT keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RECORD1 A 02 SKIPB(1) A 02 PAGRTT(270) A FIELD1 3A 2 01 A R RECORD2 A FIELD1 3A 6 01 A R RECORD3 A FIELD1 3A 5 01 A
If indicator 02 is on, RECORD1 is rotated 270 degrees. SKIPB(1) is specified so that the record starts on a new page.
When RECORD2 is printed, it will also be rotated 270 degrees because it is on the same page as RECORD1.
RECORD3 uses the PAGRTT value specified on the CRTPRTF, CHGPRTF, or OVRPRTF commands, because it is on a new page.