A WEEKLY or MONTHLY History tape is unreadable...for whatever reason.. tape was written over, tape has been damaged, created on a bad drive, etc.
1. Create a backup copy of the WEEKLY or MONTHLY prefix.CNTL member and also create a backup copy of #USRMAC in prefix.USER.SOURCE.
2. Modify #USRMAC in prefix.USER.SOURCE to add the following statements.
To recover a WEEKLY History tape:
%GLOBAL EMERGWH;
%LET EMERGWH = TWO;
To recover a MONTHLY History tape:
%GLOBAL EMERGMH;
%LET EMERGMH = TWO;
This will cause MICS archive history processing to select two cycles of input data from the online data base.
IMPORTANT NOTE: Ensure that these statements are coded after any %INCLUDE statements present in the #USRMAC member.
Following this procedure an unreadable generation of WEEKLY or MONTHLY History tape will still exist. You may want to uncatalog this generation to avoid errors/abends when running reports against the history files.
Note: This procedure assumes that you have at least two(2) cycles of data at the WEEKS or MONTHS timespan for all files that are being archived.