Previous Topic: JCL Field DescriptionsNext Topic: GVBDB001—Disable or Enable CA Hyper-Buf


GVREPORT Sample Report Construct

The following is a working report sample. There are seven separate reports in the GVREPORT sample provided in the CBS3OPTN library. Each report should be broken out into separate reports.

OPTIONS DATEFORM(MM/DD/YY) TIMEFORM(HH:MM:SS) UPPERCASE SORTNAME(SORT) -

TRACE

TITLES ('HYPERBUF SMF REPORT - JOB INFORMATION')

REPORT GVBSMF42 INFILE(SMFIN)

FIELDS INRECNUM SMFFLAG1 -

SMFJOBNM SMFSTPNM SMFPRGNM SMFCDENM SMFDDNM -

SMFXXDTE SMFXXTME SMFMRFU SMFMRFH

FIELD SMFDSN (LENGTH(41))

SELECT SMFXXRTY EQ X'81' AND SMFHBREL EQ X'00110000'

RUN

The RUN statement engages the report. The RUN statement is the key to running the previous report constructs. Once a RUN statement is discovered, no other statements are processed.

Continuation characters are required when continuing a selected field construct to a new line as seen in the following example.

FIELDS INRECNUM SMFFLAG1 -

SMFJOBNM SMFSTPNM SMFPRGNM SMFCDENM SMFDDNM -

SMFXXDTE SMFXXTME SMFMRFU SMFMRFH

The FIELDS criteria construct has several report fields selected. The (-) dash at the end of each line denotes a continued field. Once the dash is no longer used, the field construct is complete.

The TITLE field construct is taken as a literal. Any characters or spaces within the parenthesis and quotes are considered a literal and simply placed into the report heading as is. No continuation characters are used for this construct.

The SELECT construct allows simple logic choices to be made. An example of this type of logic is looking for version specific information and the correct SMF record type.

SELECT    SMFXXRTY EQ  X'81' AND  SMFHBREL   EQ  X'00110000'

The field SMFXXRTY EQ X'81' notifies GVREPORT to select only those SMF records that match SMF record type X'81' (TYPE 129-Example only).

The field SMFHBREL EQ X'00110000' notifies GVREPORT to select only those SMF records that have a CA Hyper-Buf r11 identifier.

Since the AND logic is used, the SMF record selected must be TYPE 129 (Example only) and created by CA Hyper-Buf r11 or the record is passed up for selection.

Note: No ANDOR logic exists for GVREPORT at this time.