Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Display Log (DSPLOG) command shows the system history log (QHST). The history log contains information about the operation of the system and system status.
The display contains the messages sent to the log, the date and time the message was sent, and the name of the job that sent it.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LOG | Log | QHST | Optional, Positional 1 |
PERIOD | Time period for log output | Element list | Optional, Positional 2 |
Element 1: Start time and date | Element list | ||
Element 1: Beginning time | Time, *AVAIL | ||
Element 2: Beginning date | Date, *CURRENT, *BEGIN | ||
Element 2: End time and date | Element list | ||
Element 1: Ending time | Time, *AVAIL | ||
Element 2: Ending date | Date, *CURRENT, *END | ||
OUTPUT | Output | *, *PRINT, *PRTWRAP, *PRTSECLVL | Optional |
JOB | Jobs to display | Single values: *NONE Other values (up to 5 repetitions): Qualified job name |
Optional, Positional 3 |
Qualifier 1: Jobs to display | Name | ||
Qualifier 2: User | Name | ||
Qualifier 3: Number | 000000-999999 | ||
MSGID | Message identifier | Single values: *ALL Other values (up to 100 repetitions): Name |
Optional |
Top |
Top |
Specifies the period of time for which the logged message data is shown. This parameter contains two element lists of two elements each. A value or *N must be specified for an element if a subsequent element value will be specified in order to maintain its position in the parameter value sequence. If PERIOD is not specified, the following values are assumed:
PERIOD((*AVAIL *CURRENT) (*AVAIL *CURRENT))
Element 1: Start time and date
Element 1: Starting time
One of the following is used to specify the starting time at which or after which the data must have been logged. Any entries logged before the specified time and date are not shown.
Element 2: Starting date
One of the following is used to specify the starting date on which or after which the data must have been logged. Any entries logged before the specified date are not shown.
Element 2: End time and date
Note: The values specified for the ending date and time are ignored if the output is shown on the display. That is, all data in the log that was logged on or after the specified starting date and time can be shown, regardless of the ending date and time specified.
Element 1: Ending time
One of the following is used to specify the ending time before which the data must have been logged.
Element 2: Ending date
One of the following is used to specify the ending date before which or on which the data must have been logged.
Note: If no output is received after you run the DSPLOG command with *PRINT specified, the dates of some message data may be out of sequence. To print the data in this case, specify:
PERIOD((*AVAIL *BEGIN)(*AVAIL *END)).
Top |
Specifies whether the output from the command is shown at the requesting display station or printed with the job's spooled output.
When the output is printed, two or more lines are printed for each message. The last line contains the following information:
Top |
Specifies the jobs (if any) for which messages in the log are shown. The messages for the specified jobs are shown only if they were logged in the period of time specified in this command.
Single values
Other values
If a job name is not qualified, all jobs by that name in the log will have their messages shown.
Top |
Specifies up to 100 message identifiers (if any) of the logged messages that are shown. These messages are shown only if they were logged in the period of time specified for the Time period for log output (PERIOD) parameter and in the jobs specified for the Jobs to display (JOB) parameter.
Single values
Other values
To display specific generic types of messages, specify the 3-character code that identifies the message file followed by all zeros. For example, CPF0000 specifies that all CPF messages that meet the specifications of the previous parameters are shown. If an identifier is specified as pppnn00, any message beginning with the specified five characters (pppnn) can be shown. Refer to the description of the MSGID parameter in the Add Message Description (ADDMSGD) command for more information on message identifiers.
Top |
Example 1: Displaying Logged Messages for Current Date
DSPLOG LOG(QHST)
This command shows all the logged messages (and their associated data) that are available in the history log for the current date.
Example 2: Displaying Logged Messages for September 1988
DSPLOG JOB(MYJOB) PERIOD((*AVAIL 090199) (*AVAIL 093099)) MSGID(CPF0000)
This command displays all CPF messages, in the history log for MYJOB, that were logged during September 1999.
Top |
*ESCAPE Messages
Top |