The FDRARCH MERGE process will merge the whole input ACF into some output ACF but it doesn't select entries by date. If there is a need to move a subset of ACF entries then this procedure is recommended. It will move entries older than two years.
1 ) make a copy of the ACF to a temporary name
2) run FDRARCH with DELETE command(s) to delete all entries for the last 2 years (today to 2 years ago)
3) run FDRARCH REORG to purge all the DELETE’d entries (don’t do any catalog updates)
4) use FDRARCH MERGE to now merge this file with just the older entries with either an existing file from the last time you ran this job, or if this is the first time, use this file as the split /spill over file.
Once you are satisfied that the split off ACF has what you want (and only what you want) then run FDRARCH against the primary ACF to DELETE everything that is over 2 years old (these are now in the split ACF) .
Run the FDRARCH REORG on the primary to purge the DELETE’d entries and then you are done. Again, don’t do any catalog updates.
There is no Auto-Recall from the second ACF. Restores have to be done manually, that's why we recommend moving the oldest entries.
Sample JCL:
//S1 EXEC PGM=FDRCOPY,REGION=4M
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
COPY TYPE=DSF
SELECT CATDSN=FDRABR.ARCHIVE.ORIG,
NEWNAME=FDRABR.ARCHIVE.HISTORY
/*
//REORG EXEC PGM=FDRARCH,REGION=0M
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//ARCHIVE DD DSN=FDRABR.ARCHIVE.HISTORY,DISP=SHR
//TAPE1 DD DSN=FDRABR.ARCHIVE.HISTORY.BACKUP,DISP=(,CATLG),
// SPACE=(CYL,(10,10)),STORCLAS=EUSCS01
//SYSIN DD *
DELETE ADATE>=2020.001
REORG DELETE=PURGE,DUMPDEVICE=DISK,
RECALL=NO,SEARCH=NO,UNCAT=NO,NOLOG,ENABLE=TMS
/*
//REORG EXEC PGM=FDRARCH,REGION=0M
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//ARCHIVE DD DSN=FDRABR.ARCHIVE.ORIG,DISP=SHR
//TAPE1 DD DSN=FDRABR.ARCHIVE.ORIG.BACKUP,DISP=(,CATLG),
// SPACE=(CYL,(10,10)),STORCLAS=EUSCS01
//SYSIN DD *
DELETE ADATE<2020.001
REORG DELETE=PURGE,DUMPDEVICE=DISK,
RECALL=NO,SEARCH=NO,UNCAT=NO,NOLOG,ENABLE=TMS
/*