HP XP P9500 Storage User Manual

Page 151

Advertising
background image

The maximum length of a record that can be output is 8,192 bytes. Log data longer than 8,192 bytes
will be divided before being output. The maximum block length is 32,760 bytes.

TIP:

To merge event log data activated by multiple OSs in a sysplex environment, output the log for each
OS from the log stream to a dataset, transfer files to a PC, and then sort the files in chronological
order.

Outputting logs by using the event log data output tool

From the event log output by the system logger service to the data stream, you can output the required
log data to a dataset by using the event log data output tool (

KTLOGCP

).

1.

Determine the conditions for event log data to be output (start time, end time, and job name).

2.

Create a control statement for

KTLOGCP

.

The following shows the format of the

SYSIN

dataset for specifying a control statement.

• Dataset format: Sequential dataset in the fixed-length record format
• Record length: 80 bytes
• Block length: Any value (multiple of 80)

3.

Create a JCL for

KTLOGCP

.

Use the following example to create a JCL for

KTLOGCP

.

//YUKON01 JOB

// EXEC PGM=KTLOGCP

//OUTLOG DD DSN=YUKON.LOG.DATA,DISP=(NEW,KEEP),

// RECFM=VB,LRECL=8192,BLKSIZE=32760,

// SPACE=(CYL,(100,10)),VOL=SER=WKVL01,UNIT=DASD

//SYSPRINT DD SYSOUT=A

//SYSIN DD *

RANGE STARTTIME(2013/03/24,00:00:00) ENDTIME(2013/03/24,23:59:59)

SELECT COND(JOBNAME,EQ,'USER01T')

SELECT COND(JOBNAME,EQ,'USER01')

/*

4.

Execute

KTLOGCP

.

Related topics

Control statements for the event log data output tool

, page 151

Output format of the event log data output tool

, page 153

Control statements for the event log data output tool

A control statement specified in the DD statement

SYSIN

for the log data output tool (

KTLOGCP

)

contains a RANGE control statement, which specifies the time, and SELECT control statements, which
specify the job names.

If the DD statement

SYSIN

is not specified or if no control statement exists, all log data for the system

logger service will be output from the log stream to a dataset.

User Guide

151

Advertising