PSF for z/OS: User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Printing more than one copy

PSF for z/OS: User's Guide
S550-0435-04

Printing more than one copy

To print more than one copy of your AFP data, you can use these methods:

  • You can transmit the data set to the printer any number of times, producing a copy of the entire data set for each transmission. You can specify collated copies either by using the JCL COPIES or COPYCNT parameters or by using multiple OUTPUT statements in the JCL.
  • You can print multiple copies of each page in turn. You can specify page copies in the form definition, or you can code them as subgroups on the JCL COPIES parameter.

You can include copies from both methods in a single data set. For more information about these options and the relationships between them, see the descriptions of COPIES and Using FORMDEF with COPIES or FLASH parameters in JCL.

Examples:
  1. In this example, the COPIES parameter is specified in the DD statement. Fourteen copies of the data set are to be printed in page number sequence.
    //AFPUSERA JOB ...
    //STEP1 EXEC PGM=USERA
    //PRINT DD SYSOUT=A,COPIES=14
       /*
    The data set is sent to the printer 14 times. If the data set contains three pages, the output is like the example in Figure 43.
    Figure 43. Sample output for COPIES=14
    This figure shows 14 sets of three pages each. The first set is Copy 1 and contains Page 1, Page 2, and Page 3. The next set is Copy 2 and contains Page 1, Page 2, and Page 3. The sets continue this way through set 14.
  2. This example uses a user-created form definition, named F1UCOPY2, that specifies two copies of each page. These two copies can be defined in the form definition with different overlays, suppressions, or flash options.
    //AFPUSERB JOB ...
    //STEP1 EXEC PGM=USERB
    //OUT1  OUTPUT FORMDEF=UCOPY2
    //DD1 DD SYSOUT=A,OUTPUT=(*.OUT1)
       /*
    The data set is transmitted one time and will contain two copies of each page.
  3. This example uses both the COPIES parameter and the user form definition named F1UCOPY2.
    //AFPUSERC JOB ...
    //STEP1 EXEC PGM=USERC
    //OUT1  OUTPUT FORMDEF=UCOPY2
    //DD1 DD SYSOUT=A,OUTPUT=(*.OUT1),COPIES=3
       /*
    The data set is transmitted three times, as specified in the COPIES parameter. Each of those transmissions contains two copies of each page, as specified in the form definition.
  4. In this example, the COPIES parameter is specified in the OUTPUT statement. Three copy groups are to be printed, producing a total of six copies of the data set. The group values are set so that the first group contains one copy of each page, the second contains three copies, and the third contains two copies.
    //AFPUSERD JOB ...
    //STEP1 EXEC PGM=USERD
    //OUT2 OUTPUT COPIES=(,(1,3,2))
    //DD2 DD SYSOUT=(,),OUTPUT=(*.OUT2)

    The data set is sent to the printer three times, once for each group value. If the data set contains three pages, the output is like that in Figure 44. Notice that in the second and third copy groups, all the copies of a given page are printed before the next page is printed.

    Figure 44. Sample output for COPIES=(,(1,3,2))
    This figure shows pages stacked in three separate groups. Group 1 contains one copy of Page 1, Page 2, and Page 3. Group 2 contains three copies of Page 1, three copies of Page 2, and three copies of Page 3. Group 3 contains two copies of Page 1, two copies of Page 2, and two copies of Page 3.
  5. In this example, you use multiple OUTPUT statements in the JCL to print multiple copies of a data set, each with different AFP formatting.
    //AFPUSERE JOB ...
    //STEP1 EXEC PGM=USERE
    //OUT1  OUTPUT PAGEDEF=USER1,FORMDEF=USER1
    //OUT2  OUTPUT PAGEDEF=USER2
    //DD1 DD SYSOUT=A,OUTPUT=(*.OUT1,*.OUT2)
       /*
    The job will first print the data set according to the page definition and form definition specified in the OUT1 OUTPUT statement. Then the job will print the data set again, this time using the page definition specified in the OUT2 OUTPUT statement. Because this statement does not specify a form definition, the default form definition is used.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014