Overview of the event log data output tool – HP XP Command View Advanced Edition Software User Manual

Page 213

Advertising
background image

Estimating the dataset (OUTLOG) to which logs are output from the log stream

Estimate the disk capacity based on the amount of offloaded event log data and the retention period.

Overview of the event log data output tool

The event log data output tool (

KTLOGCP

) outputs the event log data accumulated in the log stream

to a dataset. The output log data will not be deleted from the log stream.

KTLOGCP

allows you to output only the necessary event log data by specifying conditions for output

data.

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

).

Procedure

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

.

User Guide

213

Advertising