Previous Topic: GETVARL CommandNext Topic: MSG Command


LOADRULES Command

The LOADRULES command enables a new CA Automation Point rules file dynamically (while CA Automation Point is running). A dynamically enabled rules file always replaces the current rules file.

This command has the following format:

"LOADRULES FILE(rulesfilename) [REPLACE(YES|NO|CLEAN)]"
FILE

Specifies the name of the CA Automation Point rules file (rulesfilename) that you want to enable.

REPLACE

(Optional) Specifies the condition under which you want CA Automation Point to enable the new rules file. Valid REPLACE values are:

YES

Loads, compiles, and enables the new rules file even if one or more rules in the new rules file contain syntax errors.

NO

Loads and compiles the new rules file, but does not enable the file. Specify NO to check for syntax errors in a new rules file.

CLEAN

Loads, compiles, and enables the new rules file only if all rules in the file are free of syntax errors.

Default: YES

Example:

Suppose that you want to enable a new rules file after 8:00 p.m. (when the second shift starts at your data center). Your REXX program may contain statements like these:

IF ((TIME('H')>15) & (2ND_RULES_LOADED=FALSE)) THEN
  DO
  "LOADRULES FILE(2NDSHIFT.RUL)"
  2ND_RULES_LOADED=TRUE
  1ST_RULES_LOADED=FALSE
  END