All the ACC and SRS installation options, rules, device pools, messages, and SMF records are implemented with CLIST-like control statements. The control statements can be found in one or more members of a partitioned data set.
ACC and SRS are designed to share the same rules. ACCRULES is the default name used by the products, but alternate names can be requested on the DIF START and SET commands. For clarity, the manual will assume all rule statements are found in the default member name, ACCRULES.
When the product is started, or a REFRESH command requested, the control cards from ACCRULES are converted into data structures and placed in extended CSA. The compiled rules allow the products to scan the rules very quickly, and keep product overhead to a minimum.
The rules language uses IF-THEN-ELSE logic to control the product functions. These functions are usually executed by other rule statements. The IF-THEN-ELSE logic is implemented with DEFRULE statements; device pooling and space recovery options are defined by DEFPOOL statements; messages are defined by DEFMSG statements and SMF records are defined by DEFSMF statements.
After ACC and SRS have been started, the rule definitions and device pools have complete control over the allocation and space recovery of data sets. For example, the following rule could be used to control data sets using a high-level-qualifier of PROD. ACC uses the PRDPOOL device pool for the list of eligible volumes and the volume selection algorithm - MAXSPACE. The SRS recovery parameters are also specified on the pool definition.
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)
Note: The rules language used by ACC and SRS is part of the Dynamic Install Facility. This language is used by all Storage Control Center products. Examine “RULES CUSTOMIZATION” on page 3-1 of the Rules Language Programming Guide for an overview and tutorial of the rules language.
A rule statement can assign a device pool to a data set. The device pools have a great deal of control over ACC and SRS. As the name implies, a device pool is a list of eligible devices, but device pools also control many other installation and recovery options.
During data set creation, ACC can use an assigned device pool to select the volumes for non-SMS controlled data sets. If an application receives a space failure while writing to a data set, SRS examines the pool definitions for recovery parameters.
Messages, SMF Records, and Operator Commands
The rules language has facilities to produce messages, SMF records, and operator commands. For example, when a TSO user attempts to allocate a data set to an improper volume, an ACC rule can be used to correct the request, and write a message explaining why the correction was made. Messages can be delivered in many ways. By default, batch jobs and started tasks receive messages via the JES message log, and TSO users receive messages by way of the TPUT SVC.
To monitor events that occur during ACC and SRS processing, the product allows copies of messages to be written to data sets, or sent to a specified TSO userid. To establish a more permanent audit trail, a rule can produce an SMF record for later examination.
Messages, SMF records, and operator commands can be built using literal character strings and symbolic fields. The symbolic fields are substituted into the fixed text before issuing a command or writing a message or SMF record.
When developing a rule it is often useful to examine the information used in the decision process. The tracing facility can be enabled with the ACCTRACE DD statement. This facility allows the person working on the rules language to view all the compare operations that occur during rule processing.