How can a new or changed dataset access rule be activated in ACF2?
Activation of a new or changed dataset access rule depends on whether the rule is resident in global storage or just in local storage for the region.
If the high level qualifier of a dataset is included in the RESRULE GSO record it will show in the SHOW RESIDENT output of the ACF command under "Resident Access Rules" and that rule set will be regarded as resident in global storage.
The operator command F ACF2,RELOAD(hlq) (where hlq is the high level qualifier of the dataset) must be issued to replace the existing rule set in storage. All subsequent requests for access to that dataset will now use the new rule regardless of which address space is making the request.
If the high level qualifier is not RESIDENT then that rule set is not globally resident and is chained in the LOCAL STORAGE of the address space or region making the access request.
To activate a local ruleset, issue the ACF2 SETNORUL operator command:
F ACF2,SETNORUL(jobname) or F ACF2,SETNORUL(ALL)
When the address space next makes a request for that dataset the new rule will be loaded into the address space.
If the SETNORUL command is not issued, the region will continue to use the original ruleset until the region is restarted.