Examples -- Using JCL to transform AFP documents
These examples show the JCL you can use to transform AFP documents to:
- PCL format and print the PCL documents
- PDF format and sendl the PDF documents in an email
Transform an AFP document
to PCL format and print it
This example shows how to transform an AFP document
to PCL format and print the transformed output on a PCL printer. It
assumes that:
- Printer definition pcl1 exists in the Infoprint Server Printer Inventory
with these characteristics:
- The IP PrintWay™ LPR,
direct-sockets, or IPP protocol is selected.
- The AFP to PCL transform
is specified.
- IP PrintWay prints output
data sets in JES output class P.
//PCLJOB JOB ...
//STEP1 EXEC PGM=USERA
//OUTDS1 OUTPUT CLASS=P,FSSDATA='printer=pcl1',
// FORMDEF=MYDEF,USERLIB=USERX.MYLIB
//DD1 DD SYSOUT=(,),OUTPUT=*.OUTDS1,DSNAME=&&MYFILE
Transform an AFP document
to PDF format and send it in an email
This example shows how to transform an AFP document
to PDF format and send it to an email address. This example shows
how to specify JCL parameters for sending the document in an email
(MAILTO, MAILFROM, REPLYTO, and MAILFILE). For information about these
JCL parameters, see z/OS Infoprint Server User’s Guide.
This example assumes that:
- Printer definition mail exists in the Infoprint Server Printer Inventory
with these characteristics:
- The email protocol is selected.
- The AFP to PDF transform
is specified.
- (Optional) A PDF user identifier, owner identifier, and protected
actions are specified. If a user or owner identifier is specified,
the AFP to PDF transform encrypts
the PDF document and restricts any protected actions.
- IP PrintWay prints output
data sets in JES output class P.
//MAILJOB JOB ...
//STEP1 EXEC PGM=USERA
//OUTDS1 OUTPUT CLASS=P,FSSDATA='printer=mail',
// FORMDEF=MYDEF,MAILTO='user@xyz.com',
// MAILFROM='John Sender',REPLYTO='secretary@xyz.com',
// MAILFILE='July report',TITLE='Monthly Report'
//DD1 DD SYSOUT=(,),OUTPUT=*.OUTDS1
Transform an AFP document
to PDF format, specifying encryption job attributes
This example shows how to transform an AFP document
to PDF format and mail it to an email address using the Print Interface
subsystem. The Print Interface subsystem lets you specify job attributes
that you cannot specify in JCL parameters, such as the job attributes
used to encrypt PDF documents.
This example shows how to specify:
- The SUBSYS JCL parameter, with job attributes used to encrypt
the PDF document (pdf-owner-identifier, pdf-user-identifier, pdf-protect)
- JCL parameters used to send the PDF document in an email (MAILTO,
MAILFROM, REPLYTO, MAILFILE, TITLE)
For information about these JCL parameters, see z/OS Infoprint Server User’s Guide.
This example assumes that:
- Printer definition mail exists in the Infoprint Server Printer Inventory
with these characteristics:
- The email protocol is selected.
- The AFP to PDF transform
is specified.
- The name of the Print Interface subsystem is AOP1.
//SUBSJOB JOB ...
//STEP1 EXEC PGM=IEBGENER
//OUTDS1 OUTPUT FORMDEF=MYDEF,MAILTO='CEO@xyz.com',
// MAILFROM='John Sender',REPLYTO='secretary@xyz.com',
// MAILFILE='July report',TITLE='Monthly Report'
//SYSUT2 DD SUBSYS=(AOP1,'mail','pdf-owner-identifier=john pdf-user-i
// dentifier=ceo pdf-protect={copy update}'),
// OUTPUT=*.OUTDS1
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=USERX.DATA(JULY)
Tip:
The SYSUT2 DD statement shows how
to continue a value within quotation marks on the next line. To continue
the value, end typing in column 71 and continue typing the value in
column 16 of the next line.
|