Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

Changing the format on PRINT files

If you want normal spacing to apply to output from a PRINT file at the terminal, you must supply your own tab table for PL/I. This is done by declaring an external structure called PLITABS in the main program or in a program linked with the main program and initializing the element PAGELENGTH to the number of lines that can fit on your page. This value differs from PAGESIZE, which defines the number of lines you want to print on the page before ENDPAGE is raised (see Figure 15). If you require a PAGELENGTH of 64 lines, declare PLITABS as shown in Figure 14. For information on overriding the tab table, see Overriding the tab control table.

If your code contains a declare for PLITABS, not only must the pagesize, linesize and other values be valid, but the first field in the PLITABS structure must also be valid. This field is supposed to hold the offset to the field specifying the number of tabs set by the structure, and the Enterprise PL/I library code will not work correctly if this is not true.

Figure 14. Declaration of PLITABS. This declaration gives the standard page size, line size and tabulating positions
DCL 1 PLITABS STATIC EXTERNAL,
  ( 2   OFFSET INIT (14),
    2    PAGESIZE INIT (60),
    2    LINESIZE INIT (120),
    2    PAGELENGTH INIT (64),
    2    FILL1 INIT (0),
    2    FILL2 INIT (0),
    2    FILL3 INIT (0),
    2    NUMBER_OF_TABS INIT (5),
    2    TAB1 INIT (25),
    2    TAB2 INIT (49),
    2    TAB3 INIT (73),
    2    TAB4 INIT (97),
    2    TAB5 INIT (121)) FIXED BIN (15,0);

Figure 15. PAGELENGTH and PAGESIZE
PAGELENGTH and PAGESIZE

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)