Version 4.3.2
 —  Using Batch Facilities  —

Generating Batch Report Parameters

Note:
This command is not available to users of Adabas Review under z/VM.

The GENCARD command creates batch report parameter statements from field and report processing information you provide through the Edit Report (ER) function. The GENCARD command also uses the target database information it obtains from the List Target Definitions (LT) function.

By using the GENCARD command to generate batch report parameters, you can run any online report in batch mode.

Start of instruction setTo use the GENCARD command

  1. Access the Edit Report (ER) function.

  2. Create the report definition in the same way that you create an online report definition; then save it by pressing PF5.

    For more information, refer to section Maintaining Report Definitions.

  3. Enter the command GENCARD or GC on the command line.

    The Generate Report Definition Cards window appears as shown in the example below:

    12:05:03                 A D A B A S  -  R E V I E W                 2003-07-07
                                       Edit Report                        HUB=00221
            
            Report Name: COMMANDS BY HOUR________________ DBID Monitored:222       
                                                                           
                  
    +-----------------------------------------------------------------+   
    |   Field      Order  Sum   Min   Max   Avg   Pct   Rate   Round  |            
    +-------------------------------------------------------------------+   
    |   Generate Report Definition Cards                                |    
    |   Please enter the following information for generation           |    
    |                                                                   |    
    |   File/DDNAME for output .... RVUCARD                             |    
    |   Report Definition Prefix .. ________________________________    |    
    |                                                                   |          
    +-------------------------------------------------------------------+   
    |  ________     __     _     _     _     _     _     _    ______ |      
    |  ________     __     _     _     _     _     _     _    ______ |      
    |  ________     __     _     _     _     _     _     _    ______ |      
    +--------------------------- Page 1------------------------------+      
           
     Command: gencard_______________________________________________________________
     Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
           Help  Optns Exit        Save  Start  -     +          Rules Flds  Menu
  4. On the line labeled "File/DDNAME for output", type the file or DD name for the sequential file where the batch report parameter statements are to be written.

    The default name RVUCARD appears on this line.

  5. On the line labeled "Report Definition Prefix", type the report name and press ENTER.

    To generate batch parameters for a series of reports, you may use an asterisk for "wildcard" prefixing and suffixing.

    For example, to generate batch parameters for all reports with names beginning with "T", enter T* on the Report Definition Prefix line. For all reports with names ending with "test", enter *test.

    You receive a message that the generation process has been started; however, you do not receive a message when the process is complete.

  6. To ensure that the batch parameters were generated, examine the sequential dataset where the parameters were to be written.

This document covers the following topics:


Sample Statements

The following is an example of the batch parameter statements generated by the GENCARD command for a sample report:

INPUT   FILETYPE=SEQUENTIAL,
        BUFFER-SEGMENTS=100,
        FILES=1,
        REVIEW-COMMANDS=NO
REPORT  TYPE=SUMMARY,
        TITLE='GENERATE EXAMPLE',
        PROGRAM=RD-00055,
        RESTART=Y,
        HISTORY-INTERVAL=15,
        MAXSTORE=8
DISPLAY SEQUENCE,CMD,RSP,TPUSERID,NATAPPL,NATPROG
SUM     IOS,CMDRESP,ADADURA
AVERAGE IOS,CMDRESP,ADADURA
PERCENT IOS,CMDRESP,ADADURA
INCLUDE RSP-(0,3,17,148),JOBNAME=(JOB1*-JOB3*)
COPY    FILETYPE=ADABAS,HUB=221,FNR=002,SVC=237
LOG     DSN=RVLOG,
        EXIT=LOGEX1,
        LOGIO=YES
Statement Generated using information. . .
INPUT about the target database from the List Target function (LT).
REPORT from several sources: the report TYPE, TITLE, and PROGRAM from the List Report (LR) function; the other parameters from the Report Options screen of the Edit Report (ER) function.
DISPLAY about the control break fields for summary reports or the data fields to be printed for detail reports from the Edit Report and Report Options screens of the Edit Report (ER) function.
SUM
AVERAGE
PERCENT
about data fields from the Edit Report screen of the Edit Report (ER) function.
INCLUDE from the Report Processing Rules screen of the Edit Report (ER) function.
COPY from the history parameters of the Report Options screen.
LOG from the logging parameters of the Report Options screen.

For a more detailed description of these statements, refer to the section Parameter Statements.

Top of page