Run the showlog script.
showlog.bat
showlog.sh
![[z/OS]](../../ngzos.gif)
Use the following
format:
showlog.sh {-start startDateTime [-end endDateTime] | -interval interval}
[-format CBE-XML-1.0.1] [-encoding encoding] logStreamName
[outputFilename]
where:
- -start
- Specifies the start date and time, in yyyy-MM-ddTHH:mm:ss.SSSZ
format. Milliseconds and time zone are optional.
- -end
- Specifies the end date and time, in yyyy-MM-ddTHH:mm:ss.SSSZ format.
Milliseconds and time zone are optional.
- -interval
- Specifies the start date as the system date and time minus interval
milliseconds, and end date as the system date and time. Valid values
are integers greater than 0.
- -format
- Specifies the output format. Currently only CBE-XML-1.0.1 format
is supported (this complies with the Common Base Event specification
version 1.0.1). If no format is given, showlog outputs in a tabular
format.
- -encoding
- Specifies the output file encoding, a character encoding supported
by the local Java Virtual Machine .
- logStreamName
- Is a log file name.
- outputFilename
- Is optional. If no file name is given, the showlog script creates
a default showlog.out filename, outputFilename is
created in the current directory unless it is a fully qualified file
name.
The formatted contents
of the service log are always written to a file. There are parameters
to showlog.sh which control content and encoding of the output. Enter showlog.sh without
parameters for parameter usage information.
The showlog script
can return informational messages containing service names, return
codes, and reason codes. For more information about using the z/OS® log
stream, or to look up service names, return codes, and reason codes,
refer to z/OS MVS Authorized Assembler Services
Reference ENF-IXG(SA22-7610). Return and reason codes are listed
for each service.
Refer to the topic
"Authorization for System Logger Application Programs" in z/OS MVS Assembler
Services Guide (SA22-7605) for advice on permitting access to
the log stream.