AFP in The Control-D Environment 9.0.01 Implementation Guide
AFP in The Control-D Environment 9.0.01 Implementation Guide
9.0.01
Implementation Guide
December 2015
Contacting BMC Software
You can access the BMC Software website at http://www.bmc.com. From this website, you can obtain
information about the company, its products, corporate offices, special events, and career opportunities.
United States and Canada
Address BMC SOFTWARE INC Telephone 713 918 8800 Fax 713 918 8000
2101 CITYWEST BLVD 800 841 2031
HOUSTON TX
77042-2827
USA
Telephone (01) 713 918 8800 Fax (01) 713 918 8000
2
Restricted rights legend
U.S. Government Restricted Rights to Computer Software. UNPUBLISHED -- RIGHTS RESERVED UNDER THE
COPYRIGHT LAWS OF THE UNITED STATES. Use, duplication, or disclosure of any data and computer
software by the U.S. Government is subject to restrictions, as applicable, set forth in FAR Section 52.227-14,
DFARS 252.227-7013, DFARS 252.227-7014, DFARS 252.227-7015, and DFARS 252.227-7025, as amended
from time to time. Contractor/Manufacturer is BMC SOFTWARE INC, 2101 CITYWEST BLVD, HOUSTON TX
77042-2827, USA. Any contract notices should be sent to this address.
Customer support
You can obtain technical support by using the BMC Software Customer Support website or by contacting
Customer Support by telephone or e-mail. To expedite your inquiry, see “Before contacting BMC.”
Support website
You can obtain technical support from BMC 24 hours a day, 7 days a week at http://www.bmc.com/support.
From this website, you can:
Read overviews about support services and programs that BMC offers
Find the most current information about BMC products
Search a database for issues similar to yours and possible solutions
Order or download product documentation
Download products and maintenance
Report an issue or ask a question
Subscribe to receive proactive e-mail alerts when new product notices are released
Find worldwide BMC support center locations and contact information, including e-mail addresses, fax
numbers, and telephone numbers
Support by telephone or e-mail
In the United States and Canada, if you need technical support and do not have access to the web, call 800
537 1813 or send an e-mail message to [email protected]. (In the subject line, enter
SupID:<yourSupportContractID>, such as SupID:12345). Outside the United States and Canada,
contact your local support center for assistance.
Before contacting BMC
Have the following information available so that Customer Support can begin working on your issue
immediately:
Product information
• Product name
• Product version (release number)
• License number and password (trial or permanent)
Operating system and environment information
• Machine type
• Operating system type, version, and service pack or other maintenance level such as PUT or PTF
3
• System hardware configuration
• Serial numbers
• Related software (database, application, and communication) including type, version, and service
pack or maintenance level
Sequence of events leading to the issue
Commands and options that you used
Messages received (and the time and date that you received them)
• Product error messages
• Messages from the operating system, such as file system full
• Messages from related software
License key and password information
If you have questions about your license key or password, contact BMC as follows:
(USA or Canada) Contact the Order Services Password Team at 800 841 2031, or send an e-mail
message to [email protected].
(Europe, the Middle East, and Africa) Fax your questions to EMEA Contracts Administration at +31 20
354 8702, or send an e-mail message to [email protected].
(Asia-Pacific) Contact your BMC sales representative or your local BMC office.
Third party Software
For the provisions described in the BMC License Agreement and Order related to third party products or
technologies included in the BMC Product, see
https://docs.bmc.com/docs/display/workloadautomation/Control-M+Workload+Automation+Documentati
on and click Third-party software (TPS).
4
Contents
About this guide ............................................................................................................. 8
Conventions Used in this Guide .......................................................................................................9
Information New to this Version .................................................................................................... 11
Information Relating to Control-M/Restart Users ............................................................................ 11
Related Publications ..................................................................................................................... 12
Introduction ................................................................................................................. 14
Management Overview ................................................................................................................. 14
5
The APAPARM Option ................................................................................................... 35
Category 4 Structured Fields ......................................................................................................... 35
Implementing the APAPARM Option............................................................................................... 35
The APAPARM Option Flow ........................................................................................................... 39
6
Performance Considerations .......................................................................................... 71
In-Line Resources......................................................................................................................... 71
Using a Global PAGEDEF and FORMDEF ......................................................................................... 71
Resident Fonts ............................................................................................................................. 72
Four-Font Data Centers ................................................................................................................ 72
Small Reports and Small Chunks ................................................................................................... 72
Page Segments ............................................................................................................................ 72
Special 3800 Considerations .......................................................................................................... 73
Remote Print Manager (RPM) ........................................................................................................ 73
7
About this guide
The guide contains the following:
Introduction (on page 14)
Gives a management overview and cites relevant AFP publications.
The AFP Architecture (on page 16)
Contains information regarding technical issues and external resources in AFP.
Categories of AFP Applications (on page 18)
Describes five categories of applications that produce output intended to print on AFP printers.
Decollating AFP Output (on page 22)
Describes output decollating and retrieval from the system spool and CDAM compressed sysouts.
How to Implement AFP Output by Categories (on page 27)
Describes how Control-D retrieves data and printing characteristics in each of the five output categories.
The APAPARM Option (on page 35)
Describes how APAPARM can be used to produce Category 3, Category 4, and Category 5 output.
Online Viewing (on page 41)
Describes how AFP reports processed by Control-D can be viewed on-line.
The OUTPARM Option (on page 47)
Explains how to override default printing characteristics by using the Control-D OUTPARM option.
Printing Reports (on page 52)
Describes how to perform immediate or deferred printing, determine chunk size, and print banner pages.
Printing Banners (on page 56)
Describes how to print banners and use the OUTPARM option for banner printing.
Marking User Bundles (on page 58)
Describes how to mark user bundles for easy identification and how to print bar codes on banners.
Archiving and Restoring AFP Reports (on page 66)
Describes how to archive and restore AFP reports.
Disaster Recovery (Backup Site) for Printers (on page 67)
Describes how to prepare a backup site for printing and what to do in case of a disaster.
Performance Considerations (on page 71)
Suggests methods for improving the performance of AFP printers.
8
PC/LAN Environment (on page 74)
Describes how Control-D/WebAccess Server can provide mainframe report accessibility to a large pool of
PC users in a LAN environment.
Preconfigured PFKeys
Many commands are preconfigured to specific keys or key combinations. This is particularly true with regard
to numbered PF keys, or pairs of numbered PF Keys. For example, the END command is preconfigured to,
and indicated as, PF03/PF15. To execute the END command, press either the PF03 key or the PF15 key.
Instructions to enter commands may include
only the name of the command, such as, enter the END command
only the PF keys, such as, press PF03/PF15
or both, such as, press PF03/PF15, or enter the END command
9
Names of Commands, Fields, Files, Functions, Jobs, Libraries,
Members, Missions, Options, Parameters, Reports, Subparameters,
and Users
The names of commands, fields, functions, jobs, libraries, members, missions, options, parameters, reports,
subparameters, users, and most files, are shown in standard UPPERCASE font.
User Entries
In situations where you are instructed to enter characters using the keyboard, the specific characters to be
entered are shown in this UPPERCASE BOLD text, for example, type EXITNAME.
Syntax statements
In syntax, the following additional conventions apply:
A vertical bar ( | ) separating items indicates that you must choose one item. In the following example,
you would choose a, b, or c:
a | b | c
An ellipsis ( . . . ) indicates that you can repeat the preceding item or items as many times as necessary.
Square brackets ( [ ] ) around an item indicate that the item is optional. If square brackets ( [ ] ) are
around a group of items, this indicates that the item is optional, and you may choose to implement any
single item in the group. Square brackets can open ( [ ) and close ( ] ) on the same line of text, or may
begin on one line of text and end, with the choices being stacked, one or more lines later.
Braces ({ }) around a group of items indicates that the item is mandatory, and you must choose to
implement a single item in the group. Braces can open ( { ) and close ( } ) on the same line of text, or
may begin on one line of text and end, with the choices being stacked, one or more lines later.
Screen Characters
All syntax, operating system terms, and literal examples are presented in this
typeface. This includes JCL calls, code examples, control statements, and system messages. Examples
of this are:
10
calls, such as
CALL 'CBLTDLI'
system messages, both stand-alone, such as You are not logged on to database
database_name, and those embedded in text, such as the message You are not logged on to
database database_name, are displayed on the screen.
Variables
Variables are identified with italic text. Examples of this are:
In syntax or message text, such as
Specify database database_name
In regular text, such as
replace database database_name1 with database database_name2 for the current session
In a version number, such as
EXTENDED BUFFER MANAGER for IMS 4.1.xx
Special elements
This guide includes special elements called notes and warnings:
Notes provide additional information about the current subject.
Warnings alert you to situations that can cause problems, such as loss of data, if you do not follow
instructions carefully.
11
Control-M/Restart information is identified in this guide by the §Restart§ symbol, which is shown at the
beginning of the Control-M/Restart information. This symbol is shown using the following guidelines:
If an entire topic level is dedicated to Control-M/Restart material, the heading of that topic begins with
the §Restart§ symbol. Similarly, if there are lower level topics within that level that are also dedicated
to Control-M/Restart material, the headings of those lower level topics will also begin with the
§Restart§ symbol.
This provision also applies to Control-M/Restart paragraphs, each of which will begin with the
§Restart§ symbol, or, on occasion, to single sentences, or even phrases or words, if they exclusively
pertain to Control-M/Restart material.
The same §Restart§ symbol is placed at the conclusion of each unbroken block of text material that
contains Control-M/Restart material, regardless of whether the material spans more than one heading
level, paragraph, or sentence. For example, if a first level Control-M/Restart topic includes second and/or
third and/or fourth and/or fifth level topic headings, with no intervening material that is not related to
Control-M/Restart, the §Restart§ symbol will be placed at the end of the text in the lowest level
sentence of unbroken Control-M/Restart material.
If a figure or table is used exclusively to identify or explain Control-M/Restart material, the following
statement will appear immediately preceding the figure title or the table title:
§Restart§ The following (figure)(table) is for users who have Control-M/Restart installed at their site.
If Control-M/Restart material is included only in part of a figure or table otherwise used to illustrate
standard Control-M material, the §Restart§ symbol will be used within the figure or table to identify the
information relevant only to Control-M/Restart users.
If Control-M/Restart is not installed at your site, you can skip any material in this guide that is identified with
the §Restart§ symbol.
Related Publications
INCONTROL for z/OS Installation Guide
A step-by-step guide to installing, customizing, maintaining, and upgrading INCONTROL products using the
INCONTROL Customization and Installation Engine (ICE) application.
The guide is divided into the following volumes:
INCONTROL for z/OS Installation Guide: Installing
This guide describes the procedures and steps required for installing INCONTROL products.
The following installation tracks are available:
• express installation
• customized installation
• cloning
INCONTROL for z/OS Installation Guide: Customizing
This guide describes the procedures and steps required for customizing INCONTROL products.
12
INCONTROL for z/OS Installation Guide: Maintaining
This guide describes the procedures and steps required for maintaining INCONTRO products.
The following maintenance procedures are described:
• periodic maintenance
• ad hoc maintenance
• change deployment
INCONTROL for z/OS Installation Guide: Upgrading
This guide contains instructions for upgrading to the current release from previous INCONTROL versions.
The Express Upgrade is the recommended approach for upgrading INCONTROL products to the most
recent major version.
User Guides
Product-specific guides containing comprehensive information about the operation and implementation of
each INCONTROL product.
13
1
1
Introduction
This guide helps you to efficiently implement the Control-D built-in AFP support in an AFP environment. The
combination of AFP built-in support and Control-D allows you to achieve many AFP advanced functions
without modifying application programs. Also, many other Control-D options improve Output Management
functions in an AFP environment.
It is assumed that you are familiar with Control-D and Advanced Function Printing (AFP). This guide contains
both basic and advanced information, making this document a useful guide for both beginners and advanced
AFP users.
Basic Control-D and AFP terms are explained in this guide. Any terms that are not covered in this guide can
be referenced in the relevant AFP, Control-D, and IBM publications.
The terminology used in this guide is that of INCONTROL for z/OS version 6.2.xx (which includes Control-D
version 6.2.xx). However, this guide is also applicable to all prior versions of Control-D.
Management Overview
This guide is intended to help Control-D users efficiently implement Control-D in an AFP environment by
taking advantage of Control-D’s AFP built-in support. The combination of AFP built-in support and Control-D
allows you to achieve many AFP advanced functions without modifying application programs. Also, many
other Control-D options improve Output Management functions in an AFP environment.
Data centers that use AFP realize the benefits that can be achieved with AFP. Data centers that use Control-D
realize the benefits that can be achieved with Control-D. Data centers that use AFP together with Control-D
can achieve far more benefits than using each one individually.
Major benefits that can be achieved using Control-D in an AFP environment are:
Reduced paper costs
Reduced mainframe printing workload
Fast AFP implementation and more
Control-D’s built-in AFP support includes features such as:
Full support of AFPDS page mode output (Category 5 output) - for example, DCF documents, GDDM
graphics
Full support for all AFP printers and software
Support of user-defined overlays for online viewing
WYSIWYG online viewing of AFPDS page mode reports in the PC environment
Support of all AFP printing characteristics:
• Online display and update, even after the production of the report
• Capability of bundling all reports for a recipient into one bundle for printing, regardless of different
AFP printing characteristics
14
AFP in the Control-D Environment Implementation Guide
15
2
2
The AFP Architecture
This chapter contains information regarding technical issues in AFP (Advanced Function Printing). The
information is essential in order to understand this guide. For a detailed description of all AFP technical
issues, please refer to the relevant IBM publications referenced in Introduction (on page 14).
Fonts
Fonts can be specified, using the CHARS parameter, in the JCL of the job that produces the output. The
CHARS parameter can appear in the DD or OUTPUT statement. When using this method, the following
restriction must be considered: The CHARS JCL parameter is limited to four characters, but the font
name may be up to six characters (in the case of Typographic Fonts).
Fonts can be specified, using dynamic allocation (SVC99), in the application program that produces the
output.
Fonts can be specified in a PAGEDEF definition (up to 6 characters).
If a font is not specified in any of the above, the default font specified in the PSF procedure is used. (If
a CHARS subparameter is specified in the DEVICE initialization statement of JES3, then the PSF
definitions are overridden.)
16
AFP in the Control-D Environment Implementation Guide
Page Segments
Page Segments are usually specified in Overlays.
Page Segments can be specified in-line in the output data stream using the IPS (Include Page Segment)
structured field record. The IPS record can either place the segment in a specific position relative to the
page origin, or position the segment at the current print position.
The Page Segment can also be specified in a PAGEDEF, but this alone does not make the Page Segment
print. This is only used for performance reasons and an IPS structured field is required.
When using DCF:Script/VS Language, use the SI (Segment Include) control word to identify a segment
to be included (for example, in a specific column when the document is printed). The segment is either
centered, or left or right aligned according to the current text formatting settings.
Note: A Page Segment can be printed only in the ACROSS direction, regardless of the print direction you
specify in your page definition. Therefore, you must build the Page Segment rotated to the same print
direction as the page on which you are printing.
Overlays
Overlays are specified in a FORMDEF definition.
Overlays can be specified in-line in the output data stream using the IPO (Include Page Overlay)
structured field (PSF version 2 and later only). Print position may be relative to the current line, or
defined for a specific position on the page. The Overlays must be listed in a PAGEDEF and invoked using
the IPO structured field.
17
3
3
Categories of AFP Applications
Applications that produce output intended to print on AFP printers are grouped into five categories. The
categories are divided by the level of AFP architecture implementation. A detailed description of the five
categories and how to implement them can be found in the IBM Advanced Function Printing Application
Development Guide GG66-0255 and in Developing Advanced Application for PSF-Controlled Printers
GG66-3219. Following is a brief description of each of the categories:
Category 1
Once PSF is installed, all the output printed without using any AFP software is Category 1. This output is
printed using PSF and AFP printers but does not take advantage of any AFP capabilities. Category 1 is usually
used for a very short period.
The printing mode of Category 1 output is Line Mode.
Category 2
AFP printing characteristics are defined on an installation wide basis. All (or most) output is printed using the
same printing characteristics. Category 2 is simple to implement because PAGEDEF and FORMDEF are used
installation wide and only have to be defined in one place – the PSF procedure.
The printing mode of Category 2 output is also Line Mode.
Category 3
AFP printing characteristics are defined on a dataset basis. Each output dataset may use different AFP
printing characteristics. PAGEDEF and/or FORMDEF can be defined in JCL, on a DD statement level. Each DD
statement can refer to an OUTPUT statement, since PAGEDEF and FORMDEF printing parameters are
assigned in the OUTPUT statement.
Category 3 is a very common method of printing AFP output. This is because of the simplicity of specifying
the PAGEDEF and/or FORMDEF in the JCL. No application modifications are required.
The printing mode of Category 3 output is also Line Mode.
Category 4
AFP printing characteristics are defined on a page-by-page basis. Each page of the output may use different
AFP printing characteristics.
There are a number of AFP structured fields that can be inserted in-line within the data stream. This insertion
turns Category 3 output into Category 4 output. These structured fields are:
18
AFP in the Control-D Environment Implementation Guide
Field Description
To select a specific Page Format from a PAGEDEF, an AFP structured field must be inserted in-line at the
beginning of the page. This AFP structured field is called IDM (Invoke Data Map).
19
AFP in the Control-D Environment Implementation Guide
Figure 2 Every FORMDEF Can Consist of More Than One Copy Group
To select a specific Copy Group from a FORMDEF, another AFP structured field is required at the beginning
of the page. This AFP structured field is called IMM (Invoke Medium Map).
All subsequent line formats are now printed using that specific Page Format/Copy Group until superseded by
a new IDM/IMM control record.
Pages that do not have an IDM or IMM structured field are printed with the most recent specified IDM or
IMM. If the output does not contain an IDM or IMM, then PSF uses the default Page Format and Copy Group,
whichever is listed first in the active PAGEDEF and FORMDEF.
CTX/PTX
CTX and PTX are the same (that is, before PSF version 2, PTX was called CTX). They enable you to specify
presentation text data (composed text data) within Line Mode output. Lines and boxes can be drawn, fonts
can be changed, and text can be positioned. A CTX/PTX can be inserted anywhere on a page. Unlike IDM and
IMM, the CTX/PTX takes effect only for the specific page and position on which it appears.
20
AFP in the Control-D Environment Implementation Guide
Category 5
AFP printing characteristics are defined on a free-form basis. Based on input data, the application (or
software product) determines how to format the output. Category 5 output is also called AFPDS (AFP Data
Stream). Category 5 output is most commonly produced by software packages such as DCF and GDDM. It is
not yet common for user applications to produce Category 5 output.
The primary difference between Category 4 output and Category 5 output is that Category 5 output does not
use a PAGEDEF. Each page is fully formatted by the application. Category 5 output does use a FORMDEF.
One output dataset can contain both Category 5 output (Page Mode) and regular Line Mode output, but not
on the same page.
The printing mode of Category 5 output is Page Mode.
When Page Mode printing is used, the print data stream presented to the printer is a combination of data and
printer commands. It can be viewed online only with special software tools (for example,
Control-D/WebAccess Server or AFP Workbench).
21
4
4
Decollating AFP Output
The following topics are covered in this chapter:
Output Decollating (on page 22)
Output Retrieval (on page 22)
Decollating from the System Spool (on page 23)
Decollating Directly from CDAM (on page 24)
Output Decollating
Report decollating establishes report ownership. A report may belong either entirely to one user or to several
users. Different pages of one report may belong to different users.
Output Retrieval
Control-D can retrieve output in one of two ways:
From the system spool
Directly from Compressed Dataset Access Method (CDAM) compressed sysouts
Control-D output retrieval is extremely flexible, allowing the exact requirements of each user to be met.
Control-D has the ability to decollate information that resides on a 32K column page.
The WHEN line and column range parameters specify the area on a report page in which the identifying
character string is to be located.
The special line range 999-999 is used to describe decollation of the entire page as a stream of data. It is
usually used when decollating a sysout in Page Mode. When a sysout is produced in Page Mode (as opposed
to Line Mode), there are no real line numbers in the report (usually used for graphics). There is no way to
check for line range. The search for the string is performed on the entire page.
The special column number 999 is used to describe decollation of an entire row. The string search is
performed on the entire row (useful for AFP format lines that are longer than 998 characters).
Each report (on the JCL DD statement level) can be defined for retrieval by either of the two methods
mentioned above. One job can produce two reports, one report being retrieved from the system spool and
the other directly from CDAM.
22
AFP in the Control-D Environment Implementation Guide
23
AFP in the Control-D Environment Implementation Guide
This technique requires only minor JCL changes and provides many advantages. Listed below are several
advantages of the CDAM technique:
The reports are written directly to compressed sysout; they do not pass through the system spool.
Consequently, redundant read and write operations are eliminated and computer resources are
conserved.
The elapsed time for jobs that create large reports is reduced by 10% or more.
The CDAM facility performs report compression. Depending on the type of data compressed, the
compression rate is 30% – 70%. A significant amount of disk space is saved by this process.
Regular conventional security methods (for example, RACF, ACF2, TOP-SECRET) protect CDAM sysout
(datasets).
The risk of 100% spool utilization is considerably reduced because the spool is minimally utilized.
There is no danger of SB37 abends due to insufficient disk space (for the compressed sysout).
AFP users can also specify PAGEDEF and FORMDEF parameters in the DD statement and not in the OUTPUT
statement.
24
AFP in the Control-D Environment Implementation Guide
Example 1
Figure 5 Example JCL - Before CDAM
//MYJOB jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SYSOUT=P,CHARS=(GS12,SR12),
// DCB=OPTCD=J
Example 2
Figure 6 Example JCL - After CDAM
//MYJOB jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SUBSYS=(CDAM,'SYSOUT=P,'
// 'CHARS=(GS12,SR12),OPTCD=J')
A JCL example of writing directly to CDAM using the FORMDEF and PAGEDEF parameters:
Example 3
Figure 7 Example JCL - Before CDAM with FORMDEF and PAGEDEF
//MYJOB jobcard
//OUT1 OUTPUT PAGEDEF=W240F2,FORMDEF=A11010
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SYSOUT=P,OUTPUT=*.OUT1
Example 4
Figure 8 Example JCL - After CDAM with FORMDEF and PAGEDEF
//MYJOB jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SUBSYS=(CDAM,'SYSOUT=P,'
// 'PAGEDEF=W240F2,FORMDEF=A11010')
All printing characteristics must be specified in the SUBSYS DD statement. There are certain situations that
may require specification of some or all of the printing characteristics in other places for greater flexibility and
additional capabilities. This is discussed in Category 3 (on page 27).
25
AFP in the Control-D Environment Implementation Guide
26
5
5
How to Implement AFP Output by Categories
This chapter describes how Control-D retrieves data and printing characteristics in each of the five AFP
output categories. In other words, this chapter outlines how to implement AFP output by categories.
Category 1
Category 1 output does not require any Control-D actions. The output is printed as it is produced by the
application program. Do not assign any printing characteristics to Category 1 output in Control-D.
Category 2
Category 2 output relies on global system printing characteristics defined in the PSF procedure. No Control-D
actions are required, and no printing characteristics are assigned to Category 2 output in Control-D.
Category 3
Category 3 output uses printing characteristics that are defined in external resource libraries (for example,
Fonts, FORMDEFs, PAGEDEFs, and so on). Printing characteristics, with the exception of the FORMDEF and
PAGEDEF parameters, can be specified using a number of methods. The FORMDEF and PAGEDEF
parameters must be specified in an OUTPUT statement in the JCL of the job that creates the output. The rest
of the printing characteristics can be specified by the application program in the JCL of the job that creates
the output, using dynamic allocation (SVC99).
27
AFP in the Control-D Environment Implementation Guide
In data centers that use a relatively small variety of PAGEDEFs and FORMDEFs, it may be an advantage to
use the combined PAGEDEF and FORMDEF method. This method relies on the creation of one global
PAGEDEF and one global FORMDEF used by the entire data center. Using the Control-D APAPARM option, the
correct Page Format and Copy Group is used for each report. For additional details regarding this method,
refer to Using a Global PAGEDEF and FORMDEF (on page 71).
Example 1
All printing characteristics are defined in JCL; none appears in the decollating mission definition:
Figure 9 Example 1 – Category 3 Output Using the Spool Method. JCL
//MYJOB1 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SYSOUT=P,CHARS=GS10,FCB=STD2
//
Figure 10 Example 1 – Category 3 Output Using the Spool Method. Decollating Mission
Definition
Example 2
Certain printing characteristics are defined in the JCL; others are defined in the decollating mission definition:
Figure 11 Example 2 – Category 3 Output Using the Spool Method. JCL
//MYJOB2 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SYSOUT=P,CHARS=GS10
Figure 12 Example 2 – Category 3 Output Using the Spool Method. Decollating Mission
Definition
28
AFP in the Control-D Environment Implementation Guide
Example 1
All printing characteristics are defined in the JCL; none is defined in the decollating mission definition:
Figure 13 Example 1 – Category 3 Output Using CDAM Method. JCL
//MYJOB1 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SUBSYS=(CDAM,'SYSOUT=P,CHARS=GS10,'
// 'PAGEDEF=W240F2,FORMDEF=A11010,PREFIX=M73')
Note: As you can see in the above example, the CDAM parameters can span more than one line. Be sure to
follow this syntax.
Figure 14 Example 1 – Category 3 Output Using CDAM Method. Decollating Mission
Definition
ON DSN = PREFIX=M73
PRT COPIES 01 LVL 20 USER MGT DEST RUR252 MAX COPIES
PRINT/CDAM PARMS =
WHEN LINE - COL - PRINT REF NEXT PAGE CONTID AND/OR
STRING =
29
AFP in the Control-D Environment Implementation Guide
Example 2
Certain printing characteristics are defined in the JCL; others are defined in the decollating mission definition:
Figure 15 Example 2 – Category 3 Output Using CDAM Method. JCL
//MYJOB2 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SUBSYS=(CDAM,'SYSOUT=P,CHARS=GS10,PREFIX=M73')
ON DSN = PREFIX=M73
PRT COPIES 01 LVL 20 USER MGT DEST RUR252 MAX COPIES
PRINT/CDAM PARMS = PAGEDEF=W240F2,FORMDEF=A11010
WHEN LINE - COL - PRINT REF NEXT PAGE CONTID AND/OR
STRING =
Example 3
No printing characteristics are defined in the JCL; all printing characteristics are defined in the decollating
mission definition.
Figure 17 Example 3 – Category 3 Output Using CDAM Method. JCL
//MYJOB2 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SUBSYS=CDAM
Notes
1. As the above example illustrates, multiple lines of the PRINT/CDAM PARMS parameter must not be
delimited by a comma.
2. Printing characteristics can also be specified by job name and report name or by recipient name and
report name. For more information, see The OUTPARM Option (on page 47).
Each ON statement of the decollating mission has a PRINT/CDAM PARMS field. The printing characteristics
that are specified in this field are used for all output processed by this ON statement. When the PRINT/CDAM
PARMS field is used (that is, parameters are specified), a new PRINT/CDAM PARMS line opens so that
additional printing characteristics can be specified if required.
30
AFP in the Control-D Environment Implementation Guide
Category 4
Category 4 output uses printing characteristics (for example, Fonts, FORMDEFs, PAGEDEFs, and so on) that
are defined in external resource libraries. Additional in-line AFP commands (structured fields) are used for
page formatting.
The external resources can be specified using a number of methods. (The exceptions are the FORMDEF and
PAGEDEF parameters; these parameters must be specified in an OUTPUT statement in the JCL of the job that
creates the output.) The printing characteristics (except FORMDEF and PAGEDEF) can be specified by the
application program in the JCL of the job that creates the output, using dynamic allocation (SVC99).
Without Control-D, the in-line structured fields must be inserted by the application program or by using the
PPFA Conditional Processing option. They can be automatically inserted using the Control-D APAPARM
option, described in The APAPARM Option (on page 35).
In data centers that use a relatively small variety of PAGEDEFs and FORMDEFs, it may be advantageous to
use the combined PAGEDEF and FORMDEF method. This method relies on the creation of one global
PAGEDEF and one global FORMDEF used by the entire data center. Using the Control-D APAPARM option, the
correct Page Format and Copy Group is used for each report. For additional details regarding this method,
see Using a Global PAGEDEF and FORMDEF (on page 71).
Example 2
Figure 21 Example 2 – Category 4 Output Using the Spool Method. JCL
//PRTAFP2 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SYSOUT=P,CHARS=GS10,
//
Figure 22 Example 2 – Category 4 Output Using the Spool Method. Decollating Mission
Definition
31
AFP in the Control-D Environment Implementation Guide
Example 1
The job name is PRTAFP1 and the report name is UPDATE REPORT. Assume that PAGEDEF, named PDEF,
includes the Page Format named PFRMT1. The UPDATE REPORT requests that the specific Page Format
named PFRMT1 be used. The job uses the default FORMDEF.
Figure 19 Example 1 – Category 4 Output Using the Spool Method. JCL
//PRTAFP1 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SYSOUT=P,CHARS=GS10,FCB=PDEF
//
The member PRTAFP1 in the APAPARM library can contain the following:
Figure Example 1– Category 4 Output Using the Spool Method. Decollating Mission Definition
+++UPDATE REPORT
IDM=PFRMT1
Note: The FCB parameter, in the AFP environment, can be used to specify the desired PAGEDEF.
Example 1
The job name is PRTAFP1 and the report name is UPDATE REPORT. Assume that the PAGEDEF, named
PDEF1, includes the Page Format named PFRMT1. The UPDATE REPORT requests that the specific Page
Format named PFRMT1 be used.
Figure 23 Example 1 – Category 4 Output Using CDAM Method. JCL
//PRTAFP1 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SUBSYS=(CDAM,'SYSOUT=P,CHARS=GS10,'
// 'PAGEDEF=PDEF1,FORMDEF=A11010')
//
32
AFP in the Control-D Environment Implementation Guide
The member PRTAFP1 in the APAPARM library must contain the following:
Figure 24 Example 1 – Category 4 Output Using CDAM Method. Decollating Mission
Definition
+++UPDATE REPORT
IDM=PFRMT1
Example 2
Figure 25 Example 2 – Category 4 Output Using CDAM Method. JCL
//PRTAFP2 jobcard
//STEP01 EXEC PGM=MYPROG
//SYSUT1 DD DSN=ABC.DEF
//SYSUT2 DD SUBSYS=CDAM
//
The member PRTAFP2 in the APAPARM library can contain the following:
+++UPDATE REPORT
IDM=PFRMT1
Category 5
Category 5 output uses printing characteristics (for example, Fonts, FORMDEFs, and so on) that are defined
in external resource libraries. Each page is completely formatted using AFP structured fields, and therefore
the output is in page mode (AFPDS). Additional in-line AFP commands (structured fields) can be used, for
example, for page-by-page copy grouping.
The external resources can be specified using a number of methods, with the exception of the FORMDEF
parameter. The FORMDEF parameter must be specified in an OUTPUT statement in the JCL of the job that
creates the output. The rest of the printing characteristics can be specified by the application program in the
JCL of the job that creates the output, using dynamic allocation (SVC99). The application program can switch
between Copy Groups or Page Formats.
Without Control-D, the in-line structured fields must be inserted by the application program. With Control-D,
they can be automatically inserted using the APAPARM option, described in The APAPARM Option (on page
35).
In data centers that use a relatively small variety of FORMDEFs, it may be advantageous to use the combined
FORMDEF method. This method relies on the creation of one global FORMDEF for the requirements of the
entire data center. Using the Control-D APAPARM Option, the correct Copy Group is used for each report. For
additional details regarding this method, see Using a Global PAGEDEF and FORMDEF (on page 71).
33
AFP in the Control-D Environment Implementation Guide
34
6
6
The APAPARM Option
The APAPARM option is intended mainly for Category 4 output. It can be used for Category 3 output, and
then the output is actually changed to Category 4 output. In certain cases, the APAPARM option may be
required for Category 5 output.
The APAPARM option provides the ability to implement advanced AFP capabilities with minimum effort.
Certain advanced AFP capabilities require application program modifications. When the APAPARM option is
used, some of these capabilities can be implemented without having to modify application programs. In this
way, the data center can take full advantage of many versatile AFP capabilities.
The APAPARM option is capable of assigning Page Formats and Copy Groups on a report level (not only on
a DD statement level).
Field Description
The APAPARM option can insert any structured field in the output. This includes structured fields that are not
used for Category 4 output. It is extremely uncommon to require the in-line insertion of structured fields that
are not Category 4 structured fields. Therefore, the following section discusses only Category 4
implementation using the APAPARM option.
35
AFP in the Control-D Environment Implementation Guide
Figure 27 Example of the Printer Type Definition in CTDX003 of AFP Type Printers
CTDUX003 PRINTRS= (PRT1,APA, *
PRT2,APA, *
PRT3,APA, *
PRT4,APA), *
INDEX=ON, *
BANNER=NO
A special library is used to define the structured fields for each report. This library is allocated to
DD statement DAAPA in the Control-D Printers Control monitor (that is, CTDPRINT). The original name of
this library is olprefd.olverd.APAPARM.
The library can be defined with RECFM set to V or to F. BMC recommend that you set RECFM to V, because
if you set RECFM to F, you must add four bytes (RDW) before every AFP structured field.
Note: Installations that already use the APAPARM option with a library that has RECFM set to F can use the
CTDCNVAP utility (described in the procedure by that name in the IOA PROCLIB library) to automatically
convert the setting of RECFM to V.
The APAPARM library contains one member for each job which produces output that requires structured
fields to be inserted. The member name must be identical to the job name. Each member contains structured
fields for all reports produced by the job.
Note: Not all the AFP jobs and reports require the use of the APAPARM option. Only those jobs that create
reports requiring the insertion of in-line resources must have a corresponding member in the APAPARM
library.
In each member, there must be one line for each report produced (or group of reports if using masking for
the report name) in the following format:
+++repname (+++ starts in column 1)
Parameter Description
36
AFP in the Control-D Environment Implementation Guide
Examples
Table 4 Masking Formats
Format Description
ABC* The report name must begin with ABC (that is, prefix).
ABC*D The report name must begin with prefix ABC and end with suffix D.
Any characters may be present between the prefix and the suffix.
A?B1 The report name must begin with prefix A and end with suffix B1. Any
one character may be present between the prefix and the suffix.
Following the +++repname line, one or more structured field records may follow.
Any number of +++repname lines can be present in one APAPARM member.
For example, consider the following report decollating mission parameters:
JOBNAME=xxxxxxxx
... DO NAME=report-name1
... DO NAME=report-name2
The member xxxxxxxx in the APAPARM library can contain the following:
+++report-name1
printing characteristics-1
printing characteristics-2
+++report-name2
printing characteristics-1
Not every report requires special processing using the APAPARM option. The APAPARM library must only
contain members for jobs that require in-line (in-stream) structured fields, and not for all jobs.
A sample member APAPARMS can be found in the APAPARM library.
When Control-D prints the reports named report-name1 and report-name2, the structured field or fields
specified on the lines following the +++ lines are automatically added at the beginning of each report.
The structured field records, following the +++repname line, are in Hexadecimal (Hex) format. (If it is a
library with RECFM set to F, then it must be preceded with the RDW, length in bytes.) Here is the structure
of the Hex format:
37
AFP in the Control-D Environment Implementation Guide
The APAPARM option provides a simpler method of specifying some of the structured fields, in regular
character format. Control-D automatically translates the character format to Hex format at time of printing.
The following two special commands can also appear between the AFP structured field records:
IMM=xxxxxxxx (up to eight characters)
IDM=yyyyyyyy (up to eight characters)
xxxxxxxx represents the name of the specific Copy Group in the current FORMDEF and yyyyyyyy represents
the Page Format in the current PAGEDEF.
Note: When using this method, there is no need to specify the IMM and/or the IDM commands in Hex format.
For example, consider the following report decollating mission parameters:
JOBNAME = PRTAFP1
The PRTAFP1 member in the APAPARM library can contain the following:
+++UPDATE REPORT
IMM=FORM1
IDM=UPDT
+++SUMMARY REPORT
IDM=SUMM
The Hex version could appear as follows (x‘ ’ is not part of the syntax):
+++UPDATE REPORT
X'5A0010D3ABCC000002C6D6D9D4F1404040'
X'5A0010D3ABCA000002E4D7C4E340404040'
+++SUMMARY REPORT
X'5A0010D3ABCA000002C6D6D9D4F1404040'
In this example, the UPDATE REPORT requires a special Copy Group and a special Page Format. The
SUMMARY REPORT requires only a special Page Format. The SUMMARY REPORT uses the default Copy
Group of the active FORMDEF while printing.
38
AFP in the Control-D Environment Implementation Guide
Note: If a new chunk is created when using the chunking mechanism, Control-D adds the structured field or
fields at the beginning of each new chunk.
39
AFP in the Control-D Environment Implementation Guide
If a new chunk is created when using the chunking mechanism, Control-D adds the structured field or fields
at the beginning of each new chunk.
40
7
7
Online Viewing
The following topics are covered in this chapter:
Before Control-D AFP Support (on page 41)
Viewing and Overriding Printing Characteristics After Report Decollating (on page 42)
Online Viewing of Reports that Use Overlays (OGL) (on page 44)
41
AFP in the Control-D Environment Implementation Guide
The more we examine this issue, the more we realize how much online computer capabilities are needed; for
example, the capability to include or exclude lines of a report according to a specified string, and the
capability to highlight data according to specified criteria. The following explanations and examples of the
Control-D User Reports (Online Viewing) facility can be used to productively view AFP reports and solve the
problems listed above.
The User Report List can be displayed with a variety of display types. Each display type displays report
information according to the report recipient’s needs. For example, the above display type D displays each
report on one line, with the information required by the average end-user. Display type A is intended for the
INCONTROL administrator. This display type displays a large amount of information required by the
INCONTROL administrator.
42
AFP in the Control-D Environment Implementation Guide
The report list display type can be changed dynamically using the DISPLAY command (DI). There are many
sample display types supplied with Control-D. For additional information on display types refer to the online
facilities chapter of the Control-D and Control-V User Guide.
Each data center can define its own display types according to its own requirements. For additional
information on defining new display types refer to the IOA administration chapter in the INCONTROL for
z/OS Administrator Guide.
A number of the printing characteristics can be viewed and updated for each report entry. The specific
display type that is currently being used determines the exact printing characteristics that can be updated.
Please note that a line command A can be entered in the Option field for each report entry, causing additional
information for that report to appear. Using display type D, the following printing parameters can be
updated:
Number of copies
Form
Class
Destination
When printing parameters are updated in the Active User Report List, the update takes effect only for the
currently produced report. For permanent updates, the printing parameters must be updated in the
Permanent User Report List. For additional information on the Permanent User Report List refer to the
Control-D and Control-V chapter of the INCONTROL for z/OS Administrator Guide.
43
AFP in the Control-D Environment Implementation Guide
44
AFP in the Control-D Environment Implementation Guide
By defining a ruler (a logical report view), the report can be displayed with the information required to
productively view the report online. The following sample report is the same report as displayed above,
except that a ruler has been applied to the report:
Figure 34 Sample Report With Data
------------- CONTROL-D/V REPORT VIEWING NOTES 0 PAGE 1 OF 9
COMMAND ===> SCROLL ===> CRSR
UR M41 RP INVENTORY JB M41RPRT 02462 DT 240300 RUL
---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----
1DATE: 05.05.00 INVENTORY REPORT WAREHOUSE NO: 1001
UPDATE: 05.05.00 FINAL ASSEMBLY SHOP DEPARTMENT: 100
Note that the headers are displayed together with column separators. This example demonstrates how
simple it is to define overlays for reports that are required for on-line viewing.
The report editing features described below eliminate the inconvenience inherent in traditional online
viewing and inject new life into cluttered business reports. Following are the major features:
45
AFP in the Control-D Environment Implementation Guide
Freezing Headers – You can freeze report header lines. As you scroll up and down through the report,
only the data items scroll; the column header remains fixed. This enables you to know at a glance what
each data item represents.
Freezing Columns – You can freeze report columns. This enables you to scroll right or left, and the frozen
report columns remain in the same position on the screen.
Including Report Lines – Based on line content, you can select the report lines you require. For example,
you can display only product lines with available quantity less than 100 items. Instead of browsing
through pages of irrelevant data, you can display only the data you need.
Excluding Report Lines – The Exclude option enables you to select report lines for exclusion from the
report based on the appearance of a string or strings in specified column locations. Report lines
conforming to the specified string criteria are not included in the report display.
Highlighting Important Data – You can color or highlight data in the report based on its contents. For
example, color in red only the exception values. Instead of looking for the data manually, Control-D
searches for you.
Redesigning the Report – You can easily redesign an old report to suit new business needs. You can
move columns, add new and old headings, and color your report so your data takes on new meaning.
All this can be done without any change in the application generating this report.
46
8
8
The OUTPARM Option
The Control-D OUTPARM option (also known as "Control-D Global Control of the Printing Characteristics")
allows overriding of default printing characteristics (specified at time of decollating) for all (or some) of the
reports to be printed by Control-D. In addition to the printing characteristics supported by the JCL OUTPUT
statement (such as TRC, PRMODE, and so on), the following printing characteristics can also be controlled:
Table 6 OUTPARM Printing Characteristics
Characteristic Meaning
BURST FLASC
CHARS FORMDEF
CHAR1 FORMS
CHAR3 OPTCD
CHAR4 OUTPUT
CLASS PAGEDEF
DEST TRC
FCB UCS
FLASH UCSOP
The Control-D OUTPARMS library is used with this option. Each member in this library refers to a job name
(for example, the member name is the job name), or each member refers to a user id (for example, the
member name is the recipient name). Note that all member names must refer either to job names or to user
ids – the two cannot be mixed. This is defined in the CTDX003 member in the SAMPEXIT library – the
OUTPARM parameter. For instructions on activating this option, see the Control-D and Control-V chapter of
the INCONTROL for z/OS Administrator Guide.
An OUTPARM member contains the printing characteristics that are used for the reports.
The OUTPARM option can also be used for banners (deferred printing and immediate printing). For additional
details, see Printing Banners (on page 56).
Any reports that are not specified in the OUTPARMS library are printed with the default characteristics that
were specified in the decollating mission or in the JCL parameters.
The OUTPARM option is usually used:
47
AFP in the Control-D Environment Implementation Guide
48
AFP in the Control-D Environment Implementation Guide
Parameter Description
Examples
Table 8 Masking Formats
Mask Description
ABC* The report name must begin with ABC (that is, prefix).
ABC*D The report name must begin with prefix ABC and end with suffix D.
Any characters can be present between the prefix and the suffix.
A?B1 The report name must begin with prefix A and end with suffix B1. Any
one character can be present between the prefix and the suffix.
Following the +++repname line, one or more printing characteristic parameter lines may follow. The printing
characteristics parameters must start in column one.
Any number of +++repname lines can be present in one member, depending on the reports to be processed.
For example, when using the OUTPARM option by job name, consider the following report decollating
mission parameters:
JOBNAME=GPLUPDAT
... DO NAME=UPDATE REPORT
... DO NAME=DUMP - JOB ABEND
The member GPLUPDAT in the OUTPARMS library can contain the following:
49
AFP in the Control-D Environment Implementation Guide
+++UPDATE REPORT
CHARS=GS10
PAGEDEF=UPDEF
+++DUMP - JOB ABEND
CHARS=DUMP
PAGEDEF=FOURUP
When Control-D prints the report named UPDATE REPORT, the printing characteristics specified on the two
lines that follow the +++UPDATE REPORT line are assigned to the report. This means that a specific font
(GS10) and a special page definition (UPDEF) are assigned to that report.
When Control-D prints the report named DUMP – JOB ABEND, the printing characteristics are different. In
this example, the printing characteristics might be a PAGEDEF that prints 4-up. If the update job abends, the
dump are printed 4-up to save paper. The appropriate font is also specified.
A sample member SAMPLE can be found in the OUTPARMS library.
Not every report requires special processing using the OUTPARM option. Use it only for reports that require
special processing.
OUTPARM Flow
When the Control-D Printers Control monitor is preparing to print a report, it searches for a member name.
This member name can be the same name as the job name of the job that produced the report or the same
name as the recipient who is to receive the report (according to the method selected during initial activation
of the OUTPARM option). If a corresponding member is found, it then searches for a report name in the
member, and assigns all printing characteristics to the report before sending it to the system spool.
Figure 35 Diagram of the OUTPARM Global Flow
50
AFP in the Control-D Environment Implementation Guide
The OUTPARM option is invoked for both deferred printing (printing missions) and immediate printing
requests.
51
9
9
Printing Reports
The following topics are covered in this chapter:
Immediate Printing vs. Deferred Printing (on page 52)
Defining a Printer (on page 53)
Chunk Size Considerations (on page 53)
Banner Pages (on page 54)
52
AFP in the Control-D Environment Implementation Guide
Defining a Printer
The PRINTER parameter (in member CTDPARM in the IOA PARM library) defines the logical printers on which
Control-D can print. For each local printer in the data center, the following information must be specified:
Logical printer name – JES logical printer name.
Destination code – JES destination code.
Lines per minute – Speed of the printer in lines per minute. (In a data center that only uses Page Printers,
the number of pages per minute must be specified.)
Printer status – Initial status of the logical printer.
Chunk size – Default size of the chunk sent to the printer. Control-D supports two techniques for printing:
• One-Chunk Method.
• Multi-Chunk Method.
These methods are discussed in the following pages.
Printer type – Printer type must be defined in exit CTDUX003 for deferred printing, and exit CTDUX014
for immediate printing. The printer type can be:
• APA – All Points Addressable Printer (or AFP page printers such as the 3800-3, 3820, 3835, 3900, and
so on).
• REG – Regular Impact Printer.
• LAS – Laser Printer (all laser printers, except those working in APA mode – such as 3800-1).
• XER – XEROX 97xx Laser Printer or any DJDE printer.
• FOB – SIEMENS 2200 Model 2 and 2300 Model 2 Laser Printing Subsystems.
For more information concerning printer definition, refer to the Control-D chapter in the INCONTROL for
z/OS Installation Guide: Installing, and the Control-D and Control-V chapter in the INCONTROL for z/OS
Administrator Guide.
One-Chunk Method
The entire bundle is sent to the spool for printing at one time. This method is activated by setting CHUNKSIZE
in the printing mission definition to 0. If it is not specified in the printing mission definition, CHUNKSIZE
defaults to the value that was defined during the installation process (in the PRINTER parameter of member
CTDPARM in the IOA PARM library).
53
AFP in the Control-D Environment Implementation Guide
This method can be used for printing reports that contain identical printing characteristics. If reports
containing different printing characteristics are processed in this manner, the characteristics of the first
report are used as a default for all the reports in the bundle.
When using the CDAM PAGEDEF and/or FORMDEF printing parameters, the PAGEDEF and/or FORMDEF are
added in-line prior to the data, so in this case, setting CHUNKSIZE to 0 is not valid.
Multi-Chunk Method
In this method, Control-D creates a new chunk each time the number of lines specified in the CHUNKSIZE
parameter is exceeded, or when printing characteristics for the reports change, whichever occurs first
(unless CHUNKSIZE is specified as "0" as described previously). CHUNKSIZE may be specified in the printing
mission definition. If it is not specified in the printing mission definition, CHUNKSIZE defaults to the value
specified during the installation process.
Multi-chunk processing has two major advantages:
Preventing overloading of the spool by controlling the size of the chunk.
Printing of reports with different printing characteristics within one bundle.
The multi-chunk method in Control-D is a unique design and enables reports containing any printing
characteristics to be bundled in one bundle. Therefore, this method is the recommended method for AFP
report printing.
Banner Pages
Banner exits supplied with Control-D print different types of banner pages. The banner pages are defined in
the library allocated to the DD statement DABANNER of the Control-D Printers Control monitor, the online
monitor, and each online user. A sample IOA BANNERS library is supplied as part of the IOA installation. The
library contains the following banners:
54
AFP in the Control-D Environment Implementation Guide
Banner Description
55
10
10
Printing Banners
Banners (separators) in Control-D are produced at the following times:
At the start of a bundle (printing mission)
At the end of a bundle (printing mission)
At the start of a user bundle
At the end of a user bundle
At the start of a report
At the end of a report
Indexes are also produced as follows:
At the start of a bundle (printing mission)
At the start of a user bundle
Figure 37 Banner Index Production
All of these banners and indexes are optional. Each Control-D user can specify which of the banner types is
required and only those banner types and indexes are produced. For more information on specifying required
banner types, see the Control-D and Control-V chapter of the INCONTROL for z/OS Administrator Guide.
The required banner types can also be specified on the user (recipient) level in the Recipient Definition
screen.
The Control-D banners are produced from banner skeletons. These banner skeletons reside in a standard
PDS library, the IOA BANNERS library. Each banner type resides in a standard PDS member. Banners can be
modified to meet each user’s requirements by simply editing the banner skeleton members. There are many
banner variables that can be used within banners, such as recipient name, report name, job name, date, and
so on.
AFP commands (structured fields) can be specified in Control-D banner skeletons. Banner skeletons can even
be defined as full AFPDS (page mode). This enables the data center to take full advantage of any AFP
capability with Control-D banners. The following sections describe several options for Control-D banners
printed on AFP printers.
56
AFP in the Control-D Environment Implementation Guide
$$BANCHR Example
+++STD
CHAR1=GS10
CHAR2=BRCD
+++$$ONLINE
CHARS=GS12
+++*
OUTPUT=BANNER
In the above example, the banners for printing mission STD print with special font printing characteristics
(for TRC purposes). Immediate print banners are printed with the GS12 font. All other printing mission
banners are printed with the printing characteristics defined in the BANNER OUTPUT statement.
57
11
11
Marking User Bundles
In data centers that do not have job separator machines, all printed (centralized printing) user bundles are
separated manually. Page marking becomes an important issue in this manual process, so that it is easy to
differentiate between user bundles.
Figure 38 Several User Bundles Separated By Page Markers
Page marking for user bundles is performed differently from one printer type to the next. AFP page printers
can be separated into two main categories:
Cut sheet printers (for example, 3812, 3816, 3820, and so on)
Continuous forms printers (for example, 3800-3, 3835, 3900, and so on)
58
AFP in the Control-D Environment Implementation Guide
In the above PPFA definition example, the FORMDEF name is BANNER. The Copy Group name PAGEB1 is
printed using the primary bin (Bin 1). The Copy Group name PAGEB2 is printed using the alternate bin (Bin
2).
This method of page marking (using special stationery) is the recommended method for AFP cut sheet
printers. This method cannot be used for continuous forms printers.
59
AFP in the Control-D Environment Implementation Guide
The remaining part of the line must be padded with blanks (X‘40’).
The following JES3 printer operator command suppresses JES3 page marking (applies to the ESA version of
JES3 and all subsequent releases):
*S devname,MK=N,COPYMARK=N ("*" is the JES3 command prefix)
60
AFP in the Control-D Environment Implementation Guide
61
AFP in the Control-D Environment Implementation Guide
10. Now all banners, other than the user banner, are printed according to the default without any page
marking (with the first Copy Group NOMRK). Then when a user banner, that must have a different page
marking, is about to print, the IMM AFP command changes the Copy Group to that specific banner only.
62
AFP in the Control-D Environment Implementation Guide
The CHARS parameter or the PAGEDEF parameter (if not specified in the $$BANCHR member) must be
added with the desired value in an OUTPUT statement in CTDPRINT. There is no need to indicate the TRC
printing parameter. When using the OUTPARM option, the CHARS parameter can be added in the $$BANCHR
member, so that an OUTPUT statement is not required in CTDPRINT.
Note that when using the CHARS parameter (or parameters CHAR1, CHAR2, and so on), up to four fonts can
be specified. When using a PAGEDEF, as many as 127 fonts can be specified. Normally, up to four fonts are
sufficient.
If you selected the method that does not require an OUTPUT statement, skip to Adding the CTX/PTX to the
Banner Member (on page 63).
If there is a need to inform Control-D that banners must print using a special OUTPUT statement, one of the
following methods can be used:
Use the OUTPARM option.
Perform a modification to the Control-D Banner Exit CTDUX003.
The following is an example of the OUTPUT statement that must be added to CTDPRINT and referred to from
the OUTPARM option or from exit CTDUX003.
.
.
.
//BANNER OUTPUT CHARS=(GT12,BRCD)
.
.
.
In the above example, font GT12 is the data center’s default font and font BRCD is the special bar code font.
Following is an example of the OUTPUT statement that must be added to CTDPRINT and referred to from the
OUTPARM option when using a PAGEDEF. Note that it is also possible to specify the PAGEDEF in the
OUTPARM option.
.
.
.
//BANNER OUTPUT PAGEDEF=BNRCD
.
.
.
In the above example, PAGEDEF BNRCD is the special PAGEDEF that contains the required Font List.
63
AFP in the Control-D Environment Implementation Guide
where
00 2C Length of the record.
D3 EE 9B Structured field identifier (CTX/PTX).
2B D3 03 f1 02 Set the font identifier (for example, 02).
16 Length of the followed data (for example,
recipient name).
The data (for example, %USER%) must start after X‘DA’ in regular character format.
Note: If only the recipient name must be printed in bar code, the above example can be copied exactly as it
appears into the banner member.
64
AFP in the Control-D Environment Implementation Guide
Following is an example of the OUTPUT statement that must be added to CTDPRINT and referenced from the
OUTPARM option or from exit CTDUX003.
.
.
.
//BANNER OUTPUT TRC=YES,CHARS=(GT12,BRCD)
.
.
.
In this example, font GT12 is the default font and font BRCD is the special bar code font. Setting TRC to YES
is the same as setting OPTCD to J in the DD DCB parameter.
The user banner (member $$USERST in the IOA BANNERS library) must be updated with the TRC indication
in the second column of the line that is required to print the bar code. Then the banner variable %USER%
must be added on the same line. If any additional data need to be printed in bar code format, they can be
added in the banner.
65
12
12
Archiving and Restoring AFP Reports
For all AFP reports that are archived by Control-D, the reports’ printing characteristics are maintained,
including their AFP printing characteristics. The printing characteristics are maintained in the Control-D
archived reports database (that is, History User Report list).
The printing characteristics can be displayed (and modified if required) online, using the Control-D Online
facility.
66
13
13
Disaster Recovery (Backup Site) for Printers
There are two situations where a backup site for printing is essential.
In data centers with only one or a few AFP printers (main printer). For example, situations when the
printer is out of order in the middle of the night during end-of-month processing can and do occur.
Data centers that have peak periods but normally print lower amounts of output may prefer to do some
of their peak day printing at another site. This method avoids the need to purchase more printers that
are used only on peak days.
Without AFP, in order to print at a backup site, a copy of the SYS1.IMAGELIB dataset had to exist at the
backup site. However, only one SYS1.IMAGELIB dataset is allowed per CPU and each CPU must have a
SYS1.IMAGELIB dataset. The backup site also has a SYS1.IMAGELIB of its own. If even one definition (for
example, font shape) is not identical for both sites, then the backup site cannot be used for printing. What
generally occurred to avoid this restriction was that the resident SYS1.IMAGELIB dataset was temporarily
replaced, which was inconvenient and less than productive.
AFP, however, does not require the use of SYS1.IMAGELIB. AFP printing characteristics can be defined in any
number of libraries on a single system. In addition, different libraries can be defined to different printers,
using the same PSF procedure. A copy of the AFP libraries is all that is required at the backup site.
Using the JES OFFLOAD facility, Control-D bundles can be downloaded to tape or cartridge retaining all
printing characteristics and the correct sequence of the bundle. Reports can be printed on a backup site
printer, regardless of whether or not Control-D is installed at the backup site.
67
AFP in the Control-D Environment Implementation Guide
68
AFP in the Control-D Environment Implementation Guide
$TPRTx,JOB=CTDPRINT,WS=(JOB)
Note that the WS (Work Selection Criteria) parameter must also be updated. The x must be replaced
with the printer identification number.
• If using the chunking mechanism (that is, CHUNKSIZE greater than one), the logical printer
destination (for example, U1001, as specified in CTDPARM) must be used as the destination
selection criteria. The following command demonstrates how this may be specified to the printer:
$TPRTx,R=U1001,WS=(R)
Note that the WS (Work Selection Criteria) parameter must also be updated. The x must be replaced with
the printer identification number.
Prepare a PSF procedure that has your AFP external resource libraries concatenated.
Note that the printing backup site does not have to have Control-D installed. At the printing backup site,
the printing process is totally independent of Control-D and uses JES facilities only.
69
AFP in the Control-D Environment Implementation Guide
70
14
14
Performance Considerations
For each AFP printer, the manufacturer specifies the maximum number of pages (or impressions) per minute
that the printer is capable of printing. Use this number as a "model" when investigating how many pages per
minute are actually printed. The variety of printing characteristics and the complexity of the output has a
significant influence on printer performance. In many cases, the printer’s speed is significantly less than its
maximum rated speed.
When using Control-D, there are a number of guidelines that may help in improving AFP printer performance.
Not all AFP users experience problems with printer performance, but those users who do should read this
section.
In-Line Resources
Control-D in-line resources can improve PSF performance. The performance improvement depends on the
variety of PAGEDEFs and FORMDEFs that are used by your data center’s output. PSF holds in its memory up
to seven copies of the most previously used PAGEDEFs and up to seven copies of the most recently used
FORMDEFs. PAGEDEFs and FORMDEFs are used only by PSF and are not loaded to the printer. PAGEDEFs
and FORMDEFs are instructions to PSF on how to format the output. PSF formats the output and sends it to
the printer formatted, using IPDS (Intelligent Printer Data Stream). IPDS is the data stream that is used by
PSF to communicate with the printer. It is a two way communication. Fonts, overlays and Page Segments
(images) are downloaded to the printer. The more resident fonts, the better the performance. Page
Segments can be included in an output by an overlay or by specifying an IPS structured field. When using the
IPS structured field, you can optionally specify the Page Segment in the Page Segment list of the PAGEDEF.
This is the suggested method for performance reasons, but it is not a requirement.
Using the Control-D in-line resource option, printer performance may be improved when using more than
seven PAGEDEFs or seven FORMDEFs. This is because Control-D relieves PSF from reading the PAGEDEFs
and the FORMDEFs from an external library at the time when the output is already selected to print from
spool. Control-D reads the PAGEDEFs and the FORMDEFs from the external libraries in advance, immediately
before sending the output to spool.
71
AFP in the Control-D Environment Implementation Guide
The specific Page Format and Copy Group to be used for each report are specified in the APAPARM library.
The Page Format and Copy Group names appear in the PAGEDEF and FORMDEF. If the name is not known,
it can easily be displayed by browsing the PAGEDEF or FORMDEF member in the system or user
PAGEDEF/FORMDEF library. For PAGEDEFs, the line that displays the Page Format name (in Hex) is the BDM
command X‘D3A8CA’ (Begin Data Map). For FORMDEFs, the line that displays the Copy Group name (in Hex)
is the BMM command X‘D3A8CC’ (Begin Medium Map). The name itself appears in regular text format on the
same line.
IBM supplied PAGEDEFs usually contain a Page Format with the same (or close to the same) name as the
PAGEDEF, as do IBM supplied FORMDEFs and Copy Groups. User-defined PAGEDEFs and FORMDEFs usually
use the same standard as IBM. For user-defined PAGEDEFs where the original PAGEDEF has more than one
Page Format, or for user-defined FORMDEFs where the original FORMDEF has more than one Copy Group,
use a logical name for the Page Format/Copy Group. For example, if the original PAGEDEF was named
P1STATEM, then you could name the Page Formats as follows: STATEM1, STATEM2, and so on.
Resident Fonts
With printers that support resident fonts, try to have as many commonly used fonts resident on the printer
as possible. This can dramatically improve printer performance. Fonts can be loaded as resident fonts on
various AFP printers using the PSF APSRMARK utility. For a detailed description of the APSRMARK utility, refer
to the PSF System Programmers Guide.
Page Segments
When using the IPS structured field to include a Page Segment, it is best to specify the Page Segment in the
Page Segment list of the active PAGEDEF. This improves performance during printing.
72
AFP in the Control-D Environment Implementation Guide
73
15
15
PC/LAN Environment
The following topics are covered in this chapter:
Control-D/WebAccess Server Product (on page 74)
PSF/2 Considerations (on page 76)
Flow of Events
First, reports are decollated by mainframe Control-D and designated for use by specific recipients. Each
recipient’s report destination is determined by mainframe Control-D.
Next, a printing mission is activated on the mainframe Control-D that automatically distributes reports with
a destination of CTDPC or CTDPCPRT to the PCs.
The printing mission distribution process bundles reports belonging to a specific PC recipient in a special
compressed file called a packet. To facilitate control and tracking of packet destinations, a control record is
added to the Active Transfer file (ATF) for each packet created by mainframe Control-D. Packets are then
ready for transfer to the PC.
74
AFP in the Control-D Environment Implementation Guide
Control-D/WebAccess Server initiates the request to transfer reports and then automatically performs the
following sequence of events:
Accesses the ATF in order to determine which packets are awaiting transfer to the PC user who issued
the request.
Activates the site’s File Transfer program and transfers relevant packets to the PC.
"Unbundles" the packets into individual reports and makes the transferred reports available for viewing,
editing, and printing on the PC.
Sends confirmation to mainframe Control-D that transfer was successful.
Retains reports on the PC for the duration specified in mainframe Control-D and automatically deletes
expired reports from the PC to free valuable disk space.
75
AFP in the Control-D Environment Implementation Guide
Printing Reports
The major printing functions that can be performed using Control-D/WebAccess Server are listed below:
Specify the range of pages to be printed.
Specify the format of the report to be printed by specifying the ruler name.
Determine the number of copies to be printed.
Set the length of the print page.
Specify whether to print a banner page (separator) at the beginning and at the end of the report.
Specify the destination to which the report is printed.
Export a report to other PC software products.
Specify print instructions such as condensed print.
PSF/2 Considerations
The IBM Print Services Facility/2 (PSF/2) program provides AFP to the local area network (LAN) workstation
environment or stand-alone environment.
PSF/2 provides LAN printing and combinations of printer sharing among LAN users. By extending AFP to the
standalone personal computer (PC) and LAN environments, PSF/2 lets you print high quality output on a PS/2
attached printer.
By supporting a wide range of data streams and printers, PSF/2 lets you print to almost any printer in your
organization. You can add printers based on their capabilities rather than worrying about matching specific
printers with specific applications.
PSF/2 also allows the same level of systems management, resource management, error recovery and
reporting currently provided with the host PSF products. Like the host PSF products, PSF/2 provides the fonts
needed for the supported printers.
76
AFP in the Control-D Environment Implementation Guide
Supported Printers
PSF/2 supports a wide variety of IPDS and HPCL printers. It supports the entire family of IBM’s IPDS laser
printers. This family includes printers ranging from the 10 page per minute (4028 LaserPrinter) to the 229
page per minute (3900 Printer). The following are IPDS printers supported by PSF/2:
IBM 3812 Page Printer Model 2
IBM 3816 Page Printer Model 01D and Model 01S
IBM 3820 Page Printer, channel attached
IBM 3820 Page Printer, communication attached
IBM 3825 Page Printer
IBM 3827 Page Printer
IBM 3828 Advanced Function MICR Printer
IBM 3835 Page Printer and 3835 MICR printer
IBM 3900 Advanced Function Printer
IBM 4028 LaserPrinter Model NS1
Control of Printing
PSF/2 provides comprehensive printing control, previously available only through the host PSF products. For
the IPDS printers, PSF/2 provides automatic error recovery, ensuring that if a print job is interrupted, the job
is restarted from the point of the error. PSF/2 also provides error messages and online Help information to
help you resolve problems.
PSF/2 provides interfaces that help the LAN print administrator define and manage printers and resources
(for example, the Print Submission interface enables you to quickly and easily submit print jobs).
To help you tailor and manage the system, PSF/2 provides user exits for accounting, security, and job
separation.
77