Previous Topic

Next Topic

Book Contents

Book Index

In-Stream AFP Control Statements

A major feature of Control‑D is the automatic insertion of AFP control parameters in‑stream in reports. This feature is especially useful for the following situations:

Any AFP command can be specified in its original AFP hexadecimal format. The following special commands can also appear as AFP control parameter records:

Consider the following report decollating mission parameters:

JOBNAME=ARINS1

DO NAME=AR-REPORT-1

DO NAME=AR-REPORT-2

Member ARINS1 in the Control-D APAPARM library can contain the following:

++++AR-REPORT-1

IMM=GROUP1

IDM=PAGFM1

++++AR-REPORT-2

IMM=GROUP2

When Control-D prints the report named ar-report-1, the two lines following the ++++ line are written at the beginning of the report.

When Control-D prints the report named ar-report-2, the last line in the member is written to the report.

Sample member APAPARMS is located in the Control-D APAPARM library.

Not every job has special AFP control parameters. The library must contain only members for jobs with in-stream AFP control parameters and not for other jobs.

When the Printers Control monitor or a batch printing mission is about to print a report for a user on an AFP printer, it searches for a member name with the same name as the job that produced the report. It looks for the report name in the member, translates any IMM/IDM commands to hexadecimal, and writes all the report’s AFP control parameters to the printer (through the spool). AFP printers must be defined as APA in member CTDPARM in the IOA PARM library. For more information, see the Control-D chapter in the INCONTROL for z/OS Installation Guide: Installing.

Parent Topic

Printing on AFP (APA) Printers