Example of a High-Performance Directory Control Directory
Suppose you work as a securities analyst in a brokerage firm. Your department analyzes businesses and creates a CMS file for each firm on which you have an opinion. Every day or two, your department completes a few new opinions. All the stockbrokers in your firm read the reports and advise their clients of your opinions. They typically read the files while discussing investment options on the telephone with clients, so they need good access performance.
These opinion files are good candidates for placement in a high-performance DIRCONTROL directory. Because opinions are generated every day or two, the directory would not have frequent write activity. Furthermore, you could schedule the updates to occur near the end of the business day when there is little read activity. Your department members might, for example, create CMS files in their own subdirectories while they are forming an opinion. When their analysis is complete, they would wait until the end of the business day and copy the file to the DIRCONTROL directory.
During the day, your company's numerous stockbrokers would keep the directory accessed in read-only mode. They would benefit from having the opinions in a high-speed directory because it would reduce delays when they are retrieving an opinion for a busy client.
While the example being used is for a brokerage firm, the same requirements for high-speed directories are satisfied by many situations: electronic bulletin boards, forum directories, document libraries, and so on. To illustrate how you would set up a high speed directory, we will continue with the brokerage example.
create directory vmsysu:yourid.opinions (dircontrolIf the directory already exists, you can convert it to a DIRCONTROL directory by doing the following:
- Ensure that all explicit locks for the directory and its files are deleted.
- Then enter:
dirattr vmsysu:yourid.opinions dircontrol (forceThe FORCE option revokes all individual authorizations you've granted for the directory and the files within it. Remember that individual authorizations are not allowed in DIRCONTROL directories. The FORCE option also erases all aliases from the directory. (Aliases cannot exist in a DIRCONTROL directory.)
query dirattr vmsysu:yourid.opinionsDIRCONTROLFILECONTROLgrant authority vmsysu:yourid.opinions to sa (dirwriteDIRWRITE authority allows your department members to create new files or update existing files in the directory. It also allows them to write to any file that is added to the directory in the future.
grant authority vmsysu:yourid.opinions to publicDIRREAD is the default for GRANT AUTHORITY, when a DIRCONTROL directory is specified.
Finally, call the file pool administrator and ask to have your directory made data space eligible. The administrator will enter a DATASPACE ASSIGN command for your directory, and your stockbrokers will enjoy high-speed opinions.