Previous Topic: Remove a Global ValueNext Topic: GRAF Command-Produce a Graph


GOTO Command—Jump to Specified Location

The GOTO command causes the Report Writer to ignore all subsequent commands until the specified label is read.

This command has the following syntax:

GOTO .label
.label

A period followed by a one- to eight-character label. Specify a period and this label on a separate line in the job stream where you want the Report Writer to resume processing commands.

Example: GOTO Command

The following commands produce the sample reports CICS004 CICS.OPERSTAT and CICS016 CICS.TRANSTAT. The Report Writer ignores the commands between GOTO .MYLABEL and .MYLABEL. The sample report CICS001is not produced and no syntax error is generated for the missing operand for the EACH command.

CARDLEN 71
OPTIONS(ECHO=YES,RECSTAT=YES,DUMP=NO)
INPUT(TAPSMF)
OPTION(SUMMARY=YES)

* CICS004 CICS.OPERSTAT *

TAB  DATETIME OPERIDS,
      TRAN USE,
      AND TERM RESP,
      AND TRAN LIFE,
      AND TRAN MAXLIFE
TAB2  TRANID TRAN USE
END
GOTO .MYLABEL

* CICS001 CICS.CICSSTAT *

TAB JOBNAME TRAN USE                   AND,
            TRAN USE PCT               AND,
            TRAN USE RATE HDR2(RATE)   AND,
            TRAN LIFE                  AND,
            TRAN MAXLIFE               AND,
            TERM RESP                  AND,
            TRAN CPUTIME               AND,
            TRAN I/OTIME               AND,
            DLI USE                    AND,
            DLI SERVTIME
END
.MYLABEL

* CICS016 CICS.TRANSTAT *

TABULATE TRANIDS,
         TRAN USE,
         AND TRAN USE PCT HDR1(TRAN) HDR2(%USE),
         AND TRAN LIFE HDR1(TRAN) HDR2(AVE-RT),
         AND TRAN MAXLIFE HDR1(TRAN) HDR2(MAX-RT),
         AND TRAN WAITS,
         AND TERM USE     HDR1(TERM) HDR2(USE),
         AND TERM MESSAGES,
         AND TERM RESP    HDR1(TERM) HDR2(RT-AVE),

         AND DATASET USE  HDR1(FILE) HDR2(USAGE),
         AND DATASET REQTIME
END