How to clone Endevol VSAM ELIBS without stopping LSERV
search cancel

How to clone Endevol VSAM ELIBS without stopping LSERV

book

Article ID: 404046

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

ELIB is a library architecture provided by Endevor that may be used to hold all types of non-loadlib libraries supported by Endevor (base, delta, source output, listing).

IDCAMS REPRO may be used to clone an ELIB (make an exact copy without altering its internal structure). This works fine when the ELIB resides in a BDAM file or in a VSAM which is NOT managed by LSERV

However, when a VSAM ELIB is managed by LSERV, it has share options defined as SHR(1 3) which requires that the ELIB is temporarily released from LSERV or LSERV to be stopped in order for IDCAMS REPRO to be able to copy the ELIB

Is there any better option?

Resolution

LSERV provides the LDMAMS utility that may be used to copy managed files (including ELIBS) while LSERV is managing them. This function is described in the LSERV documentation at Back Up and Restore Managed Files

Notes:

  • Since LDMAMS can only copy from VSAM to sequential or vice versa, you need to perform the copy in 2 steps using an intermediate sequential file. The second step may use IDCAMS REPRO or LDMAMS REPRO depending on whether the target ELIB is managed by LSERV.
  • The intermediate file has to have the same LRECL as the RECORDSIZE of the VSAM ELIB
  • If the target VSAM is managed by LSERV and the copy specifies the REUSE option, be sure to run LSERV at release 15.0 or at 14.0 with fix LU12798 applied, as documented in KB article L-Serv LDMAMS utility and Endevor ELIB? 
  • If this is not possible, you need to first delete the contents of the target ELIB using the RESET command of LDMAMS, documented at Delete the Contents of Files in the LSERV documentation