Ollivier & Eoin,
Thanks for the extra thoughts.
These deltas were created before my time, but they all use the default VSAM page size of 4088, and SHR 3,3
I've successfully re-orged using Dave's PDSe suggestion (45 mins vsam to pdse, 2 hours pdse to vsam, (and DISP=OLD)), but here are my original stats, we don't use Lserv or RLS.
ATTRIBUTES
KEYLEN-----------------0 AVGLRECL------------4088 BUFSPACE------------8192 CISIZE--------------4096
RKP--------------------0 MAXLRECL------------4088 EXCPEXIT----------(NULL) CI/CA----------------180
SHROPTNS(3,3) RECOVERY UNIQUE NOERASE NONINDEXED NOWRITECHK UNORDERED NOREUSE
NONSPANNED
ALLOCATION
SPACE-TYPE------CYLINDER HI-A-RBA------1548288000
IDCAMS SYSTEM SERVICES TIME: 14:57:27 09/18/23 PAGE 2
SPACE-PRI-----------2000 HI-U-RBA------1548288000
SPACE-SEC-------------20
VOLUME
VOLSER------------PEN030 PHYREC-SIZE---------4096 HI-A-RBA------1548288000 EXTENT-NUMBER----------2
DEVTYPE------X'3010200F' PHYRECS/TRK-----------12 HI-U-RBA------1548288000 EXTENT-TYPE--------X'40'
VOLFLAG------------PRIME TRACKS/CA-------------15
EXTENTS:
LOW-CCHH-----X'3E5A0000' LOW-RBA----------------0 TRACKS-------------30300
HIGH-CCHH----X'463D000E' HIGH-RBA------1489305599
LOW-CCHH-----X'2FEF0000' LOW-RBA-------1489305600 TRACKS--------------1200
HIGH-CCHH----X'303E000E' HIGH-RBA------1548287999
ENDEVOR-LIB INQUIRY: DDNAME=ELIB1
DDNAME: ELIB1
DSNAME: VGIO.END.GPROD.OTHDELTA
LIBRARY TYPE: VLB
PAGE SIZE: 4088
LAST PAGE: 378000
FILE PAGE SIZE: 4088
INITIALIZED: 11/01/2022 18:39:51.93
(RE)ALLOC STAMP: 341426
LAST REORG/EXPAND: 11/09/2022 15:18:05.75
FILE SIZE (PAGES) 377999
FIRST ALLOCATION: 359999
EXPAND ALLOCATION: 3600
RESERVE LIMIT: 10
BIT MAP PAGES: 12 STARTING AT 360984
DIRECTORY TARGET PAGES: 15000 STARTING AT 360996
ALLOC MAP BYTES: 47254
PAGES USED: 369961
PAGES FREE: 8038
LAST UPDATE STAMP: 367278
LAST UPDATE: 09/15/2023 10:37:14.04
LATEST MEMBER: FOVM0ZKA
AVG PAGES/MEMBER: 1
# DATA PAGES: 354948
BIT MAP PAGES: 12 STARTING AT 360984
DIRECTORY TARGET PAGES: 15000 STARTING AT 360996
ALLOC MAP BYTES: 47254
PAGES USED: 369961
PAGES FREE: 8038
LAST UPDATE STAMP: 367278
LAST UPDATE: 09/15/2023 10:37:14.04
LATEST MEMBER: FOVM0ZKA
AVG PAGES/MEMBER: 1
# DATA PAGES: 354948
# REPLACES: 2857
# ADDS: 354116
# DELETES: 9911
# MEMBERS: 344205
# DIRECTORY PAGES: 15000
# DIR OVERFLOWS: 0
LONGEST DIR OVFL: 0
# LIBRARY EXTENDS: 5
# DIRECTORY REORG: 1
Based on this statement in Jan's note
"Use IDCAMS to REPRO the fragmented ELIB to the un-initialized BDAM file"
I did not BC1PINIT the BDAM and used the sample JCL from the book to allocate.
Let me know if I'm missing something? I'd like to compare times btwn BDAM/VSAM copy and PDSE/VSAM copy.
Thanks!
KT
------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this email in error,
please immediately notify the sender by e-mail at the address shown.
This email transmission may contain confidential information. This
information is intended only for the use of the individual(s) or entity to
whom it is intended even if addressed incorrectly. Please delete it from
your files if you are not the intended recipient. Thank you for your
compliance. Copyright (c) 2023 Cigna
==============================================================================
Original Message:
Sent: 9/19/2023 3:52:00 AM
From: Ollivier-Francois Dorso
Subject: RE: Large VSAM ELIB Reorg: REPRO VSAM > BDAM
Hi Karen,
I used to test this and it should work.
Can you confirm you initialized the target BDAM with the same attributes than the source ELIB ?
Regards,
Ollivier
Original Message:
Sent: Sep 18, 2023 12:06 PM
From: Karen Turner
Subject: Large VSAM ELIB Reorg: REPRO VSAM > BDAM
Long ago and far away JvK added this paragraph to the Elib maintenance KD:
Note: When dealing with large VSAM ELIBs that are in multiple physical extents, BC1PNCPY can take a long time to run. Although IDCAMS repro use is discouraged as the permanent resolution to your fragmented file it can be used as an intermediate step to speed up the BC1PNCPY process, by reducing the number of physical extents. So following the advice above: Allocate 2 new ELIBs: 1 VSAM and 1 BDAM, ensuring both are large enough to fit the existing file into a single extent. Use BC1PNLIB to INIT the VSAM file. Use IDCAMS to REPRO the fragmented ELIB to the un-initialized BDAM file, then use BC1PNCPY to copy the BDAM ELIB file to the newly initialized VSAM ELIB.
Has anyone done this successfully?
I have a 2000 cyl production delta in 2 vsam extents and 5 elib extents. I do not have a 20 hour window to BC1PNCPY it from old VSAM to new VSAM.
Testing with a smaller file I get an error on the VSAM to BDAM repro:
REPRO INFILE(VSAM) OUTFILE(BDAM)
IDC3300I ERROR OPENING TTAP.END.TPROD.OTHDELTA
IDC3351I ** VSAM OPEN RETURN CODE IS 118
IDC3302I ACTION ERROR ON TTAP.END.TPROD.TSTDELTA.BDAM
IDC3309I ** RECORD X'0000000100' NOT WRITTEN. LENGTH INVALID
IDC3302I ACTION ERROR ON TTAP.END.TPROD.TSTDELTA.BDAM
IDC3309I ** RECORD X'0000000200' NOT WRITTEN. LENGTH INVALID
IDC3302I ACTION ERROR ON TTAP.END.TPROD.TSTDELTA.BDAM
IDC3309I ** RECORD X'0000000300' NOT WRITTEN. LENGTH INVALID
IDC3302I ACTION ERROR ON TTAP.END.TPROD.TSTDELTA.BDAM
IDC3309I ** RECORD X'0000000400' NOT WRITTEN. LENGTH INVALID
IDC31467I MAXIMUM ERROR LIMIT REACHED.
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
BDAM JCL:
//BDAMBR14 EXEC PGM=IEFBR14
//BDAM DD DSN=TTAP.END.TPROD.TSTDELTA.BDAM,DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(10,10)),MGMTCLAS=MCPERMMB,
// DCB=(RECFM=FBS,LRECL=4096,BLKSIZE=4096,DSORG=DA)
REPRO JCL:
//REPRO EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//VSAM DD DSN=TTAP.END.TPROD.OTHDELTA,DISP=OLD
//BDAM DD DSN=TTAP.END.TPROD.TSTDELTA.BDAM,DISP=OLD
//SYSIN DD *
REPRO INFILE(VSAM) OUTFILE(BDAM)
Any insight is greatly appreciated!
Thanks!
kt
------------------------------
Karen Turner
------------------------------