Previous Topic: DSECT for the Log File PrefixNext Topic: JCL


Control Statements

The print log utility's control statements enable you to specify the type of reports you want, the criteria to be applied in selecting log file records, and the information about the log file.

Syntax for the control statements is shown below:

►►──┬────────────────────────────────┬────────────────────────────────────────►
    └─ MODE ─┬──────┬─┬─ REPort ◄ ─┬─┘
             ├─ IS ─┤ └─ EXTract ──┘
             └─ = ──┘

 ►──┬───────────────────────────────────────────────┬─────────────────────────►
    └─┬─ PRInt ◄ ──┬───┬──────────────────────────┬─┘
      └─ EXClude ──┘   ├───── ALL ◄ ──────────────┤
                       │     ┌──────────────┐     │
                       └─ ( -v┬─ DEBug ────┬┴─ ) ─┘
                              ├─ USEr ─────┤
                              ├─ EDIterr ──┤
                              ├─ OPErator ─┤
                              ├─ ABEnd ────┤
                              └─ STAts ────┘
 ►──┬───────────────────────────────────────────────────────────┬─────────────►
    └─ FOR ──┬──── ALL ◄ ───────────────────────────────────┬───┘
             │                     ┌───────────────┐        │
             └───┬── DIAlogs ── ( ─▼─ dialog-name ─┴─ ) ──┬─┘
                 │                  ┌───────────┐         │
                 └┬─ USErids ─┬─ ( ─▼─ user-id ─┴─ ) ─────┘
                  └─ USERS ───┘

 ►───┬────────────────────────────────────────┬───────────────────────────────►
     └─ FROm time-hhmmsstttt ──┬────────────┬─┘
                               └─ ON yyddd ─┘
 ►──┬──────────────────────────────────────┬──────────────────────────────────►
    └─ TO time-hhmmsstttt ──┬────────────┬─┘
                            └─ ON yyddd ─┘

 ►──┬──────────────────────────────────────────────┬──────────────────────────►
    └─ LOG File ──┬──────┬──┬─ ADSLOGA ◄ ───────┬──┘
                  ├─ IS ─┤  └─ run-time-label ──┘
                  └─ = ──┘

 ►──┬─ PREfix ◄ ──┬──────────────────────────────────────────────────────────►◄
    └─ NOPrefix ──┘
MODE IS REPORT/EXTRACT

Specifies whether the output is formatted:

PRINT/EXCLUDE

Specifies whether the named record types are included in or excluded from the report. PRINT is the default.

ALL/(DEBUG/USER/EDITERR/OPERATOR/ABEND/STATS)

Specifies the types of records requested, as follows:

FOR ALL/DIALOGS (dialog-name)/USERIDS (user-id)

Specifies selection criteria by dialog and/or user id, as follows:

FROM time-hhmmsstttt

Specifies that only log file records created on or after the specified time are included in the report. Time-hhmmsstttt specifies the time in hours (1 through 24), minutes, seconds, and tenths of seconds. Two digits of the hour must be specified; the remainder is optional. For example, 9:45 a.m. is specified as 0945. To include a date using the ON parameter, you must specify a time; you can specify the beginning of a day as 00. The default is the beginning of the day.

ON yyddd

Specifies that only log file records created on or after the specified Julian date are included in the report. The default is the date on which the print log utility is executed.

TO time-hhmmsstttt

Specifies that only log file records created on or before the specified time are included in the report. Time-hhmmsstttt specifies the time in hours (1 through 24), minutes, seconds, and tenths of seconds. Two digits of the hour must be specified; the remainder is optional. For example, 9:45 a.m. is specified as 0945. To include a date using the ON parameter, you must specify a time; you can specify the end of a day as 24. The default is 24, which is the end of the day.

ON yyddd

Specifies that only log file records created on or before the specified Julian date are included in the report. The default is the date on which the print log utility is executed.

LOG FILE IS ADSLOGA/ddname

Specifies the z/OS ddname or z/VSE filename of the log file. The default is ADSLOGA.

PREFIX/NOPREFIX

Specifies whether the log file contains a prefix for each record. The default is PREFIX. NOPREFIX must be specified if no prefix is included, so that the print log utility does not attempt to interpret the beginning portion of each log file record as a prefix.