Transforming data using the Print Interface subsystem
The Print Interface subsystem can transform data created by a batch
application from one data format to another and then write the transformed
data to an output data set on the JES spool. The output data set on
the JES spool can then be printed on any printer or sent to an email
destination. You might want to use the Print Interface subsystem in
these situations:
- To print PCL, PostScript,
and PDF data on AFP printers
that PSF controls
- To print line data and AFP data on PCL, PostScript, and PDF printers that IP PrintWay™ controls
- To send line data and AFP data in PDF format to email destinations
using the IP PrintWay email
function
- To specify Infoprint Server
job attributes
To use the Print Interface subsystem, code these JCL parameters:
Limitations:
- You cannot use the DEST, CLASS, and FORMS parameters on the OUTPUT
JCL statement to select the IP PrintWay printer
definition.
- Do not code the SEGMENT and SYSOUT parameters on the DD JCL statement.
If you do, you receive a JCL error.
- Do not code the DEST, HOLD, and MODIFY parameters on the DD JCL
statement. The Print Interface subsystem ignores these parameters.
You can, however, specify the OUTDISP parameter on the OUTPUT JCL
statement instead of the HOLD parameter on the DD JCL statement.
- Specify only one OUTPUT JCL statement for each DD statement. The
Print Interface subsystem uses only one OUTPUT JCL statement, in this
order:
- The first OUTPUT JCL statement referred to in the OUTPUT parameter
on the DD statement.
- The first OUTPUT JCL statement with DEFAULT=YES in the same job
step.
- The first OUTPUT JCL statement with DEFAULT=YES in the job.
- Each output data set that the Print Interface subsystem creates
on the JES spool is placed in a separate JES output group from other
output data sets in the same job step, regardless of the value specified
in the GROUPID parameter on the OUTPUT JCL statement.
- The QSAM and BSAM access methods and the OPEN, CLOSE, and PUT
functions are supported. Other access methods and functions (such
as CHECKPOINT, GET, and LOCATE) are not supported.
- JES2 /*OUTPUT JCL statements and JES3 //*FORMAT JCL statements
are ignored.
- If your application writes multiple output data sets that require
data transforms, your job and other jobs might not complete if your
administrator limits the maximum number of data transforms. Therefore,
before using the Print Interface subsystem, contact your administrator
to determine whether the maximum-active attribute
in the transform configuration file is suitable for your application.
Error handling: When the Print Interface
subsystem detects an error, it writes an error message to your job
log, and it does not write any output data to the JES spool for the
job step. If the subsystem detects an error during PUT and CLOSE operations
in your application, it abnormally terminates with abend code 09B
after writing an error message. Some situations that can cause an
abnormal termination are:
- The printer does not support the format of the data that your
application writes to the DD statement. Your administrator specifies
the supported data formats in the printer definition. For information
about the supported data formats, see document-format.
- The data transform is not installed or is not customized correctly.
Related information:
Modifying JCL to use the Print Interface subsystem
These examples show how to modify the JCL you might use to print
a data set to the same printer:
Example 1: JCL that does not use
the Print Interface subsystem
//DD1 DD SYSOUT=E,DEST=PRT003,DSNAME=&&MYDATA
Example 2: JCL that uses the Print Interface
subsystem (changes in bold)
//DD1 DD SUBSYS=(AOP1,'printer003'),DSNAME=&&MYDATA
These examples assume that printer definition printer003 in
the Infoprint Server
Printer Inventory contains these values:
- Field
- Value
- CLASS
- E
- DEST
- PRT003
- FORMS
- not specified (JES default value is used)
These changes were made in these JCL examples:
- In Example 2, the SYSOUT parameter on the DD JCL statement was
replaced with the SUBSYS parameter. In the SUBSYS parameter, the name
of the Print Interface subsystem (AOP1) and the name of the printer
definition that your administrator defined for the printer (printer003)
are specified.
- In Example 2, the class, destination, and forms values are not
specified because the printer definition contains the same values
as shown in Example 1. However, to override these values in the printer
definition, you could code the CLASS, DEST, and FORMS parameters on
an OUTPUT JCL statement.
|