Previous Topic: Active Report ListNext Topic: Submit the Job


How to Define a Dynamic Report

Important! Use a test database to follow this procedure so that you do not inadvertently change or lose data in your database. The system must be installed and running and the Primary Selection Menu panel displayed before you begin this section.

This scenario describes how an administrator defines a dynamic report.

The following graphic shows how to define a new report definition that uses the value DYNAM for the Type field. The scenario demonstrates the flexibility of dynamic reports and how they can simplify the CA Deliver definitions and maintenance.

Note: Multiple dynamic reports can be nested within another dynamic report.

Follow these steps:

  1. Define distribution identifiers.
  2. List distribution identifier for recipients of the report and define the job.
  3. Define two dynamic report definitions.
  4. Specify Report Definition Attributes for Report 1.

    Note: For steps 4 and 5, enter the report definition attributes that identify how to build the report ID and Distribution ID. Enter the report identification text to define the pages that are required for the report.

  5. Specify Report Definition Attributes for Report 2.
  6. Close the Panels.

    Note: Any lowercase characters that are entered on the panels are automatically converted to uppercase.

Define Distribution Identifiers

Define distribution identifiers for the following designations:

Note:

You are George Jones, an administrator of Amalgamated American Manufacturing. You are given the following report: This report is used in the previous scenario for stacked reports with overlapping segments. You can use the dynamic report definitions to process the report with the following options:

List Distribution Identifier and Define Job

You can enter the required information on various panels to list the distribution identifiers and define the job.

Follow these steps:

  1. Enter D D* on the command line of the Primary Selection Menu panel and press Enter.

    The Distribution Selection List panel, which contains a complete list of distribution identifiers for regions, is displayed. This list is based on the scenario from Stacked reports with overlapping segments.

    CA Deliver ------------ Distribution Selection List (1) ----------------------- Command ===> Scroll ===> PAGE Sel Distribution ID Line 1 List ==> D* * * D01PRES PRESIDENT SALES D01VPRES VICE PRESIDENT OF SALES D30SMG01 SALES MANAGER, REGION 01 D30SMG02 SALES MANAGER, REGION 02 D30SMG03 SALES MANAGER, REGION 03 D30SMG04 SALES MANAGER, REGION 04 ******************************* Bottom of Data ********************************

  2. Scan the list.

    The region level distribution is defined using a constant of D30SMG followed by the two-digit numeric region number. D30SMG04 is added to account for region 04.

  3. Enter RETURN on the command line and press Enter to display the Primary Selection Menu panel.
  4. Enter J U90526A on the command line and press Enter to display the Reports for Job panel.
  5. Enter QUARTERLY SALES AND SUMMARY in the Description field.

Define Two Dynamic Report Definitions

You can enter the required information on the Reports for Job panel to define two dynamic report definitions.

Follow these steps:

  1. Enter J U90526A and press Enter to display the Reports for Job panel on the command line of the Primary Selection Menu panel.
  2. Enter QUARTERLY SALES in the Description field.
  3. Enter the following information on the Reports for Job panel:

    In this example, two new reports are added to job U90526A. A Report Definition Attributes panel is then displayed for each of the reports.

  4. Press Enter to display the Report Definition Attributes panel for the first report.

    CA Deliver ------------- Report Definition Attributes ------------------------- Command ===> ID ---> U90526A-D01 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Desc ===> Attributes: ARCH ===> BANNER ===> BURST ===> CC ===> CLASS ===> COPIES ===> FCB ===> FORM ===> FLASH ===> ( , ) LATE ===> OPTCDJ ===> UCS ===> FORMDF ===> PAGEDF ===> PRMODE ===> PRSET ===> PRTY ===> GRPID ===> CHARS ===> ( , , , ) MODIFY ===> ( , ) COPYG ===> ( , , , , , , , ) The following attributes may be selected by entering the 1-character selection code on the command input line: B - Bundle specifications. D - Distribution specifications. I - Special instructions. T - Report identification text.

    You can now specify report definition attributes for both reports.

Specify Report Definition Attributes for Report 1

You can now specify report definition attributes for Report 1.

Follow these steps:

  1. Enter the following information on the Report Definition Attributes panel:
    1. QUARTERLY SALES in the Description field.
    2. 1 in the ARCH field to archive the report.

      CA Deliver ------------- Report Definition Attributes ------------------------- Command ===> ID ---> U90526A-D01 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Desc ===> QUARTERLY SALES Attributes: ARCH ===> 1 BANNER ===> BURST ===> CC ===> CLASS ===> COPIES ===> FCB ===> FORM ===> FLASH ===> ( , ) LATE ===> OPTCDJ ===> UCS ===> FORMDF ===> PAGEDF ===> PRMODE ===> PRSET ===> PRTY ===> GRPID ===> CHARS ===> ( , , , ) MODIFY ===> ( , ) COPYG ===> ( , , , , , , , ) The following attributes may be selected by entering the 1-character selection code on the command input line: B - Bundle specifications. D - Distribution specifications. I - Special instructions. T - Report identification text.

  2. Press Enter to refresh the Report Definition Attributes panel.
  3. Enter D on the command line, and press Enter to display the Distribution Specifications subpanel.

    For report definitions with TYPE=DYNAM the following panel is displayed:

    CA Deliver ----------- Report Definition Attributes (1) ---- Row 00001 of 00010 Command ===> Scroll ===> PAGE ID ---> U90526A-D01 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Variable Specifications: Sel Name Line Column Length Distribution Specifications: Writer/ Days Sel Type Report/Distribution ID Out Dest Eformat MTWTFSS

  4. Enter the variable specifications that define the region number and report fields as variables.
  5. Enter Distribution Specifications that define the dynamic report ID and distribution ID using combinations of variables and constants.
    1. Enter the following information in the first line under Distribution Specifications:
      • REPT under Type to specify the structure of the dynamic report ID.
      • &RPTID to specify the contents of the &RPTID variable.
      • –QTRLY-REG to specify a constant.
      • &REGION to specify the contents of the &REGION variable. The previous three steps are concatenated to build REPT (removing leading and trailing blanks).
    2. Enter the following information in the second line under Distribution Specifications:
      • DIST under Type to specify the structure of the dynamic distribution ID.
      • D30SMF to specify the contents of fix portion of the distribution ID.
      • &REGION to specify the contents of the &REGION variable. The previous two steps are concatenated to build DIST (removing leading and trailing blanks).
  6. Retain default values in the remaining fields.

    CA Deliver ----------- Report Definition Attributes (1) ---- Row 00001 of 00010 Command ===> Scroll ===> PAGE ID ---> U90526A-D01 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Variable Specifications: Sel Name Line Column Length REGION 2 8 2 RPTID 1 1 8 Distribution Specifications: Writer/ Days Sel Type Report/Distribution ID Out Dest Eformat MTWTFSS

    REPT &RPTID-QTRLY-REG&REGION DIST D30SMF&REGION Y YYYYYYY

    A unique report is created for every combination of region number and report ID.

  7. Enter END command to save definition and display the Report Definition Attributes panel.
  8. Enter T on the command line and press Enter to display the Report Identification Text subpanel.

    CA Deliver ------------- Report Definition Attributes ------ Row 00001 of 00010 Command ===> Scroll ===> PAGE ID ---> U90526A-D01 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Report Identification Text: Line Column Sel Typ R Op Beg End Beg End Text Cols 001 046 XCL Y EQ 1 25 QUARTERLY

    Report Identification Text is used to select only pages that have a heading of QUARTERLY. Only QUARTERLY SALES report pages are selected for this dynamic report. SUMMARY pages are not included.

  9. Enter the following information:

    You can now define the report identification text for U90526A-D02 (report 2).

Specify Report Definition Attributes for Report 2

The first report contains the Quarterly Sales report. The second report contains all the Summary reports for all regions. Report 2 looks similar to the first but there is no need for unique reports by region. Also, we must ensure that only pages with SUMMARY are included in the report.

Follow these steps:

  1. Enter the Select tabular command S on the row with U90526A-D02, in the Sel column and press Enter on the Reports for Job: U90526A panel.

    The Report Definition Attributes panel is displayed.

  2. Enter the following information on the Report Definition Attributes panel:
  3. Press Enter to refresh the Report Definition Attributes panel.
  4. Enter D on the command line, and press Enter to display the Distribution Specifications subpanel.

    For report definitions with TYPE=DYNAM the following panel is displayed:

    CA Deliver ----------- Report Definition Attributes (1) ---- Row 00001 of 00010 Command ===> Scroll ===> PAGE ID ---> U90526A-D02 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Variable Specifications: Sel Name Line Column Length Distribution Specifications: Writer/ Days Sel Type Report/Distribution ID Out Dest Eformat MTWTFSS

  5. Enter the variable specifications that define the report field as a variable.
  6. Enter Distribution Specifications that define the dynamic report ID and distribution ID using combinations of variables and constants.
    1. Enter the following information in the first line under Distribution Specifications:
      • REPT under Type to specify the structure of the dynamic report ID.
      • &RPTID to specify the contents of the &RPTID variable.
      • -SUMMARY to specify a constant. The two previous steps are concatenated to build REPT (removing leading and trailing blanks).
    2. Enter the following information in the second line under Distribution Specifications:
      • DIST under Type to specify the structure of the dynamic distribution ID.
      • D01VPRES to specify distribution of the report to the President.
  7. Retain default values in the remaining fields.

    CA Deliver ----------- Report Definition Attributes (1) ---- Row 00001 of 00010 Command ===> Scroll ===> PAGE ID ---> U90526A-D01 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Variable Specifications: Sel Name Line Column Length RPTID 1 1 8 Distribution Specifications: Writer/ Days Sel Type Report/Distribution ID Out Dest Eformat MTWTFSS REPT &RPTID-SUMMARY DIST D01PRES Y YYYYYYY

    DIST D01VPRES Y YYYYYYY

    A unique report is created for every combination of RPTID.

  8. Enter END command to save definition and display the Report Definition Attributes panel.
  9. Enter T on the command line and press Enter to display the Report Identification Text subpanel.

    CA Deliver ------------- Report Definition Attributes ------ Row 00001 of 00010 Command ===> Scroll ===> PAGE ID ---> U90526A-D02 Job ---> U90526A Step ---> SALESTEP Procstep ---> DD ---> REPORTS Type ---> DYNAM Report Identification Text: Line Column Sel Typ R Op Beg End Beg End Text Cols 001 046 XCL Y EQ 1 2 1 80 SUMMARY

    Report Identification Text is used to select only pages that have a heading containing SUMMARY.

    Note: Only SUMMARY SALES report pages are selected for this dynamic report. QUARTERLY pages are not included.

  10. Enter the following information:

Close the Panels

You can add the job to the database and close the panels.

Follow these steps:

  1. Enter END on the command line and press Enter on the Report Definition Attributes panel.

    The report that you defined is added to the database and the Reports for Job panel is displayed for the job.

    CA Deliver ---------------- Reports for Job: U90526A ------- Row 00001 of 00010 Command ===> Scroll ===> PAGE Desc ===> QUARTERLY AND SUMMARY SALES REPORT Prevrun ===> Sel Stepname Procstep DDname Report ID Type Prevrun SALESTEP REPORTS U90526A-D01 DYNAM U90526A-D02 DYNAM ******************************* Bottom of Data ********************************

  2. Enter END on the command line and press Enter to display the Primary Selection Menu panel.

    The message U90526A SAVED is displayed in the short message area and the job is added to the database.

    You can now run the job.