Examples of SRS rule statements - Latest

Syncsort™ Storage Management Allocation Control Center and Space Recovery System Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ software
Product
Syncsort™ Storage Management > Syncsort™ Space Recovery System
Syncsort™ Storage Management > Syncsort™ Allocation Control Center
Version
Latest
ft:locale
en-US
Product name
Syncsort Storage Management
ft:title
Syncsort™ Storage Management Allocation Control Center and Space Recovery System Guide
Copyright
2026
First publish date
1991
ft:lastEdition
2026-04-01
ft:lastPublication
2026-04-01T09:40:09.707000
L1_Product_Gateway
Integrate
L2_Product_Segment
IBM Infrastructure
L3_Product_Brand
Precisely Syncsort
L4_Investment_Segment
Mainframe
L5_Product_Group
Mainframe Storage Optimization
L6_Product_Name
Syncsort Storage Management

Example 1 System data sets should not be recovered by SRS. The following rule should be added near the beginning of the rules language to ensure recovery is not performed by SRS.

DEFRULE SYSEXIT

IF &HLQ = (SYS1,SYS2) THEN EXIT

Example 2 The SETSEC parameter allows SRS to dynamically add a secondary space value. In this example, SETSEC sets the secondary to 100% of the primary space request.

DEFRULE PRDPERM IF &HLQ = PROD

THEN SET DISKPOOL=PRDPOOL

DEFPOOL PRDPOOL SETSEC(PERCENT(100))

Example 3 In this example, SRS uses the following rule to decrease the primary space request by 10% and retry the allocation until the space request succeeds, or the primary space value falls below a limit of 20% of the original primary space value.

DEFRULE PRDPERM IF &HLQ = PROD

THEN SET DISKPOOL=PRDPOOL

DEFPOOL PRDPOOL REDUCEP(10 LIMIT(20))

Example 4 This example builds on the two previous examples. If SRS is allowed to reduce the primary space request to 20% of the original space request, the application using the data set is likely to have space problems when writing to the data set. To recover from any problems created by the reduced primary value, this example implements the SETSEC and ADDVOL recovery environments.

The SETSEC parameter allows SRS to dynamically add a secondary space value. As in the previous example, a value of 100% of the primary will be added to data sets that are allocated without a secondary space value.

This example can also add another volume to the data set. The ADDVOL(YES) parameter allows SRS to add a volume from the eligible device list produced by the VOLSER expression. By default, the ADDVOL function will not add additional volumes after the data set resides on two volumes. The MAXVOL(5) subparameter allows the data set to extend up to five volumes.

Note: When data sets extend to new volumes, the operating system uses the secondary space value for the initial extent for non-VSAM data sets. For VSAM data sets, the primary space value is obtained when the data set extends to a new volume.

DEFRULE PRDPERM IF &HLQ = PROD

THEN SET DISKPOOL=PRDPOOL

DEFPOOL PRDPOOL ADDVOL(YES MAXVOL(5))

REDUCEP(PERCENT(10) LIMIT(20)) SETSEC(PERCENT(100))

VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)

Example 5 Before dynamically adding a new volume to a data set, the SRS ADDVOL facility performs checks to ensure data integrity. For information about the data integrity checks, examine “SRS ADDVOL Data Integrity Checks” on page 5-2. Conditions do exist where specific applications can perform the ADDVOL function without losing data integrity.

SORT programs provide an excellent example. While SORT uses EXCP processing, the utility supports a multivolume data set for the SORTOUT DD statement. To allow SRS to recovery space problems with SORTOUT files, add the following rule near the top of the rules language. Note: SORTWKnn cannot use multivolume files.

If your installation uses BETTER GENER to enhance the performance of jobs using IEBGENER, the second IF statement can be used to allow ADDVOL recovery on IEBGENER jobs. Since the IBM version of IEBGENER does not use EXCP processing, the second IF statement does not affect installations not using BETTER GENER.

DEFRULE SRSEXCP CONTINUE(NEXTIF) IF &PGM = (SORT,ICEMAN)

&DDNAME = SORTOUT THEN SET SKIP_EXCP = YES

IF &PGM = IEBGENER

THEN SET SKIP_EXCP = YES

Example 6 In an SRS ADDVOL environment, you might want to select the next volume based on the current volume name. The following example limits ADDVOL recovery to data sets using a HLQ of PROD.

The ADDVOL(YES) parameter allows SRS to dynamically add a volume to the data set. SRS will only add additional volumes when the data set has used 16 extents on the current volume, or the current volume has no available space.

The VOLSER=(...) expression in the DEFPOOL statement uses the original volume symbolic: O:VOLSER. This expression limits SRS ADDVOL recoveries to volumes starting with the same three characters.

DEFRULE PRDPERM IF &ENV = ADDVOL

&HLQ = PROD

THEN SET DISKPOOL=PRDPOOL

DEFPOOL PRDPOOL ADDVOL(YES) VOLSER(1,3)= &O:VOLSER(1,3)

Example 7 The current pool definition can specify the name of an alternate pool for use by the ADDVOL request. In the following example, the POOL subparameter points to a pool of overflow volumes used for SRS recoveries. Note: Most SRS recovery parameters are obtained from the current pool definition - volume selection is controlled by the expressions, algorithm, and any other alternate pool parameters from the overflow pool.

DEFRULE PRDPERM IF &HLQ = PROD

THEN SET DISKPOOL=PRDPOOL

DEFPOOL PRDPOOL ADDVOL(YES MAXVOL(5) POOL(SRSADVOL))

REDUCEP(PERCENT(10) LIMIT(20)) SETSEC(PERCENT(100))

VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)

DEFPOOL SRSADVOL VOLSER=(SRS*)

Example 8 ACC and SRS are designed to work together. The same device pool definitions that are used by ACC to perform device selection, also control the SRS recovery options. In this example, the following statements control both volume pooling and disk space recovery.

During ACC processing, the statements will force non-SMS data sets that have a high- level-qualifier of PROD to the production disk volumes.

The DEFPOOL statement contains expressions that define a device pool - examine the VOLSER=(...) expression below. During data set allocation, ACC processing uses the device pool for volume selection. Once the data has used the available space on the volume, the SRS ADDVOL recovery option uses the device pool to select a volume to extend the data set.

The ALGORITHM(MAXSPACE) parameter is used by both ACC and SRS. During data set creation, ACC uses the ALGORITHM parameter to select the volume that has the most available space. During SRS ADDVOL recovery, the parameter is again used to select the volume in the pool containing the most space.

The REDUCEP parameter determines whether SRS can dynamically reduce the primary space requested during allocation. REDUCES(YES) allows SRS to reduce the secondary value to the largest extent available on the volume. If no secondary was coded, the SETSEC parameter allows SRS to allocate a secondary value to the data set.

SETSEC(100) specifies the percentage amount that is applied to the primary space value.

The ADDVOL(YES) parameter allows SRS to dynamically add a volume to the data set. SRS will only add additional volumes when the data set has used 16 extents on the current volume, or the current volume has no available space. The VOLSER=(...) expression in the DEFPOOL statement defines the volumes eligible for ADDVOL recovery.

DEFRULE PRDPERM IF &HLQ = PROD

THEN SET DISKPOOL=PRDPOOL

DEFPOOL PRDPOOL ALGORITHM(MAXSPACE)

REDUCEP(PERCENT(10) LIMIT(20)) SETSEC(PERCENT(100)) REDUCES(YES)

ADDVOL(YES) VOLSER=(PROD*,PRDT01,PRDT03,PRDT04,PRDT10)