Previous Topic: Using ACF COMPILE to Build Resource RulesNext Topic: Compiling Resource Rules from a Terminal


Compiling Resource Rules from a CMS File

You can create a resource rule set by first entering the control statements and rule entries in a CMS file. The file must have a filetype of RULE. Each rule entry must be on a separate line.

For example, assume that the following text was in a file named RSRCRULE with a filetype of RULE.

$KEY(ABCD) TYPE(123)
 UID(*****TLCAMS) ALLOW
 UID(*****TLCPJM) UNTIL(11/25/90) ALLOW

After entering the text into the CMS file, invoke CA ACF2 for VM and compile the resource rule set with the COMPILE subcommand under the RESOURCE(123) setting. Issue the COMPILE subcommand with the CMS filename.

set resource(123)
RESOURCE(123)
 
COMPILE RSRCRULE
ACFCMP510I ACF compiler entered
 
$KEY(ABCD) TYPE(123)
 UID(*****TLCAMS) ALLOW
 UID(*****TLCPJM) UNTIL(01/25/90) ALLOW
ACFCMP551I Total record length=184 bytes ‑ 4 percent utilized
ACFCMD729I Resource ABCD stored
 
RESOURCE(123)

Indicate only the filename. The filetype is assumed to be RULE. The rule set is compiled and stored (by default). After compiling the resource rule set, you can use the TEST subcommand to determine if it performs attempted access validations as you expect.