Previous Topic: DELETE SubcommandNext Topic: TEST Subcommand


STORE Subcommand

The STORE subcommand places a previously compiled set of command limiting rules onto the Infostorage database. You must have authority to store the rule. This authority is granted through the SECURITY privilege or through the %CHANGE or %RCHANGE control statements. If you are not authorized to store the rule, the operation is rejected.

Syntax of the STORE Subcommand

The STORE subcommand has the following syntax:


STore   { Force  }
        { NOForce}

This subcommand accepts one parameter:

Force

The default of FORCE stores a rule set even it already exists. In this case, the new version of the rule set replaces the existing version.

NOForce

NOFORCE stores the rule set only if it does not already exist. If the rule does exist, then NOFORCE rejects the store operation.

There is a SET FORCE|NOFORCE subcommand that defaults to SET FORCE. You can use the FORCE|NOFORCE parameter of STORE to override the SET value, or use the SET subcommand to change the defaults for the STORE subcommand. For example, you could issue a SET NOFORCE that effectively changes the default of STORE FORCE to STORE NOFORCE.

How to Use the STORE Subcommand

The example below shows how to use the STORE subcommand:

acf
ACF
set cmdlim
CMDLIM
compile
ACFpgm510I ACF compiler entered
$key(spool)
 con purge uid(****opr) log
 print copy ‑ allow
 print rscs allow
 ‑ uid(*) allow
 
ACFpgm551I Total record length='length' byte ‑ 'percent' percent utilized
CMDLIM
store
ACFpgm769I Rule SPOOL stored