Specifying print direction

For line data or XML data, the page definition can specify a print direction of ACROSS, DOWN, BACK, or UP. For a description of AFP print directions, see Print direction. In the following examples, PSF-supplied page definitions are used to control the print direction.

Examples:
  1. This example specifies printing in the DOWN direction on a 3800 printer loaded with forms that measure 12 inches wide by 8.5 inches high. The resulting output prints in the portrait format; that is, the page is turned so that its top is the short (8.5-inch) edge of the form.
    //AFPUSERA JOB …
    //STEP1 EXEC PGM=USERA
    //OUT1  OUTPUT PAGEDEF=06061
    //PRINT DD SYSOUT=A,OUTPUT=(*.OUT1)
       /*
  2. This example specifies printing in the ACROSS direction on a cut-sheet printer. The resulting output is in portrait format because the top of the page is the shorter, 8.5-inch side of the form. For IBM® cut-sheet printers such as the 3825 printer, the top of an ACROSS page is always the short side of the form.
    //AFPUSERB JOB …
    //STEP1 EXEC PGM=USERB
    //OUT1  OUTPUT PAGEDEF=A06462
    //PRINT DD SYSOUT=A,OUTPUT=(*.OUT1)
       /*
  3. This example specifies printing in the ACROSS direction on a 3835 printer. Because the 3835 printer has the Page Presentation Compatibility feature, the output is in portrait format unless the form definition that is used affects page compatibility. For more information, see Page-presentation compatibility.
    //AFPUSERC JOB …
    //STEP1 EXEC PGM=USERC
    //OUT1  OUTPUT PAGEDEF=A06462
    //PRINT DD SYSOUT=A,OUTPUT=(*.OUT1)
       /*