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:
- 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 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.
- 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.
- 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))
- 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.
|