This SRS recovery option is a last-ditch effort to allow a job to run. DO NOT USE THIS OPTION FOR ONLINE SYSTEMS (IMS, CICS, ETC). IT WILL STOP THE
TASK WHILE IT WAITS. Neither the operating system nor SRS could provide space for a data set during EOV processing. SPACEFAIL allows two capabilities. One allows the job to wait and try the allocation again since it’s possible that a job that is using all the space may end and the allocation would then be successful. Another option is to involve the operator in an attempt to save the job from failing. To activate the SPACEFAIL environment, add the following statement to the rules language.
DEFENV SPACEFAIL MODE(ACTIVE)
The recovery option is specified by the SPACEFAIL parameter on the DEFPOOL statements.
DEFENV SPACEFAIL MODE(ACTIVE)
.
.
.
DEFRULE PRDPERM IF &HLQ = PROD
THEN SET DISKPOOL=PRDPOOL
DEFPOOL PRDPOOL ADDVOL(YES))
ALGORITHM(MAXSPACE) VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10) SPACEFAIL(EOV RETRYWAIT(60) RETRYCOUNT(10))
During a space failure, SRS will put the job in a wait state for the number of seconds specified in RETRYWAIT. It will then retry the allocation. If the allocation fails again, then SRS repeats the wait then retry cycle. SRS goes through this loop the number of times specified in RETRYCOUNT. If the allocation still fails, then SRS writes messages to the operator console. The valid operator responses are CANCEL or RETRY. Since space problems are often caused by timing situations, many allocations can succeed by waiting for other jobs to complete before issuing RETRY. The operator can also make space available on a volume, or add another volume to the storage group or pool definition used by the data set. When RETRY is requested, the operating system will retry the space request, and if necessary SRS will attempt recovery on subsequent space problems.
Optionally, the SPACEFAIL parameter on the DEFPOOL statement can be specified as
DEFPOOL PRDPOOL ADDVOL(YES))
ALGORITHM(MAXSPACE) VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10) SPACEFAIL(EOV)
Without the RETRYWAIT and RETRYCOUNT parameters, SRS will just notify the operator rather than go through the wait and retry cycles.
Note: The DIF rules language also has an operator interface that can be used during SRS ADDVOL recovery. This facility can be used to allow an operator to select a specific
volume to be used to extend the data set. Both the DIF operator interface and the SPACEFAIL option can be used to recover space problems. However, the DIF operator interface would be attempted before the SPACEFAIL operator request. For more information, examine “Communicating with the Console Operator” on page 3-72 in the Rules Language Programming Guide.