A single application run can generate multiple reports simultaneously. That means more than one report, up to a maximum of 15 reports, can be active at a time. This is useful when the same data is needed to produce several reports.
For example, assume customer reports are printed daily, weekly, monthly, and so on. Each report relies on the same data, but has different RDF specifications. Regardless of these different specifications, the reports can all be produced in a single FOR construct. These reports access all of the customer rows. The following simplified program sample assumes that the subprocedure CHECKDATE sets several flags based on the current date. These flags indicate which reports are generated:
FOR EACH CUSTOMER
PRODUCE DAILYRPT
DO CHECKDATE
SELECT EVERY
WHEN WEEKEND
PRODUCE WEEKRPT
WHEN MONTHEND
PRODUCE MONTHRPT
WHEN QTREND
PRODUCE QTREND
WHEN YREND
PRODUCE YREND
ENDSELECT
ENDFOR
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|