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?
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: