search cancel

Log Analyzer LADREPT allocation to DASD or TAPE specifying specific volser or retention period.

book

Article ID: 253642

calendar_today

Updated On:

Products

Log Analyzer for DB2 for z/OS

Issue/Introduction

Requirement to allocate the Log Analyzer for Db2 for z/OS (PLA) LADREPT
to a permanent file or to tape with a long expiration date.

What can be done to the following to change the allocation to tape or specific VOLSER?
If using tape how to define retention period?

.ALLOC FI(LADREPT)                                                                                 +
DATASET('xxxx.xxxxxx.xxxxxxx')                                                                 +
CYL SPACE(5,5) BLKSIZE(7448) LRECL(137) RECFM(V,B,A)                  + 
NEW CATALOG UNIT(SYSDA)

Environment

Release : 20.0

Resolution

The following Batch Processor .ALLOC examples provided for guidance:

.ALLOC FI(LADREPT)                                                                          +
 DATASET('xxxx.xxxxxx.xxxxxxx')                                                        +
 CYL SPACE(5,5) BLKSIZE(7448) LRECL(137) RECFM(V,B,A)         + 
 NEW CATALOG UNIT(SYSDA) VOLUME(xxxxxx) 

or   

.ALLOC FI(LADREPT)                                                                                  +
 DATASET('xxxx.xxxxxx.xxxxxxx')                                                                 +
 CYL SPACE(5,5) BLKSIZE(7448) LRECL(137) RECFM(V,B,A)                  + 
 MGMTCLAS(xxxxxxxx) STORCLAS(xxxxxxxx) DATACLAS(xxxxxxxx)       + 
 NEW CATALOG UNIT(SYSDA)   


TAPE example:

.ALLOC FI(LADXTRCT)                                                                             +
 DATASET('xxxx.xxxxxx.xxxxxxx')                                                              +
 LABEL(1,SL) BLKSIZE(7448) LRECL(137) RECFM(V,B,A)                     +  
 NEW CATALOG UNIT(xxxxx) VOLLIMIT(10)      

 

The Batch Processor ALLOC Command—Allocate Data Sets Dynamically
documentation will assist with .ALLOC syntax:


EXPDT(YY/DDD|CCYY/DDD)
Sets the date when a data set can be deleted or overwritten by another data set. 
Where, yy is the year, ddd is the day, and cc is the century.

RETPD(value)
Sets the number of days that must expire before the data set can be deleted or replaced
by another data set. This parameter should not be coded with the EXPDT parameter of the SYSOUT parameter.


As an alternative, the .ALLOC FI(LADREPT) can be removed and instead specify
the //LADREPT DD in the JCL which may make it easier specifying standard JCL.
Remove the .ALLOC FI(LADREPT) control card from the //BPIIPT DD input and
then allocate the //LADREPT DD in the JCL.


Example:

//LADREPT  DD DSN=xxxxxx.xxxx.xxxxxxxx,       
//         UNIT=VTAPE,DISP=(NEW,CATLG),                     
//         LABEL=(1,SL)