Recovery on Tape Data Sets
During job initialization, the operating system examines the number of volumes requested by a DD statement. The number of volumes is obtained from the number of specific volumes listed on the VOL=SER operand, or the volume_count requested by the same operand - whichever is greater.
If five or less have been requested, the operating system reserves space for five volumes. If more than five are needed, additional groups of twenty volumes are allocated. For example, if three volumes have been requested, the system reserves room for five volumes. When six volumes are requested, room for twenty-five is reserved.
During output processing, if the application attempts to write to more tapes than the number reserved by the system, an abend 837-08 is performed by the operating system.
If the ADDVOL environment has been enabled for tape data sets, SRS can dynamically add room for an additional twenty volumes. To enable ADDVOL for tapes, add the following statement to the rules language.
DEFENV ADDVOL PROCESS(TAPE)
The following rule statements can be used to recover from the abend 837-08. In this example, the rule only performs recovery on job names starting with PRODBK.
DEFRULE TAPEADDV
IF ENVIRON = ADDVOL UNITTYPE = TAPE JOBNAME = PRODBK*
THEN SET TAPEPOOL = TAPE837
DEFPOOL TAPE837 ADDVOL(YES MAXVOL(6))
Stacker Recovery
Cartridge stack loaders, also known as stackers, have a limited number of tape slots in an input hopper. Stackers are usually used during the backup procedures. Scratch tapes are loaded in the input hopper, and the tapes are used as needed by backup applications. Once the input hopper empties, the application must wait for an operator to fill the input hopper with another batch of scratch tapes.
SRS can detect an empty hopper condition on a stacker. If the ADDVOL environment has been enabled for tape data sets, SRS can dynamically allocate another stacker that has available tapes. To enable ADDVOL for tapes, add the following statement to the rules language
DEFENV ADDVOL PROCESS(TAPE)
The following rule statements can be used to dynamically allocate another stacker. In this example, the rule only performs recovery on job names starting with PRODBK.
DEFRULE TAPEADDS
IF &JOBNAME = PRODBK* &ENV = ADDVOL
&UNITDEV EQ (3480S,3490S) THEN SET TAPEPOOL = TAPENEW
DEFPOOL TAPENEW ADDVOL(YES TAPE(NEWUNIT)) UNITTYPE = TAPE
AUTO_LOAD_ACT = YES