Lines 5 and 6: Using Retrieval and Update Codes

You may want to assign different sets of retrieval and update codes to separate departments of your company, want to restrict system privileges or access to TCL, or use a combination of these strategies. You can enter retrieval and update codes in lines 5 and 6 of File Definition items in both the Master Dictionary of an account and in any file dictionary.

Access to accounts and files can be restricted by assigning retrieval and update codes to them.

retrieval codes

Lock codes that prevent users from reading protected files and files in protected accounts.

update codes

Lock codes that prevent users from making changes to protected files and files in protected accounts.

Retrieval codes are defined in line or attribute 5 of the Account Definition item or User-ID item. Similarly, update codes are defined in line or attribute 6 of these same items. These sets of codes would be entered as MultiValued codes. One department might have the codes A, B, and C; another might have X, Y, and Z.

Further, a department might want to use four different levels of retrieval and update codes, providing increased restrictions at each level.

Unless a password is included during the account creation process, the account is accessible to all users who know the logon-IDs. Most files when they are first created are accessible to all users of the system. Files in accounts protected by retrieval and update codes will not be accessible to users or to other accounts whose Account Definition items do not contain the same retrieval and update codes, even if the logon-ID and password are known. Files protected by retrieval and update codes cannot be accessed by any accounts or users without the corresponding code in their Account Definition item.

NOTE

 It is particularly important to protect the SYSTEM Dictionary, making it accessible only from the SYSPROG account. This can be done by assigning retrieval and update codes to both the SYSPROG account and the SYSTEM Dictionary that will allow only the SYSPROG account to read or write to the SYSTEM Dictionary.

In order to update files, the following processors require that both retrieval codes and update codes match:

To open a file, the mvBASIC processor requires that retrieval codes match; both update and retrieval codes must match for mvBASIC to change data. All other processors can be considered retrieving processors; to retrieve data, they require only that the retrieval codes match.

Retrieval and update codes can be placed in any of the following items:

Retrieval and update codes can be given to an account at the time it is created. At any other time, use the Editor to enter retrieval and update codes in Account Definition, User-ID, and File Definition items.

NOTE

Remember, however, not to make any changes to items in the SYSTEM Dictionary unless all other users are logged off the system.

Retrieval and update  codes can be any combination of ASCII characters. In the same way that multiple valid process codes are listed, multiple update and retrieval codes are listed with the value mark (CTRL+]) used as a separator; as mentioned earlier, update and retrieval codes are maintained in separate lines or attributes of the Account Definition, User-ID and File Definition items.

Matching Retrieval and Update Codes

In order for the file codes and the user codes to match, the following conditions must be met:

For example, the following codes match:

File Code

User Code

Result

ABC

ABC

match

AB

ABC

match

ABC

ABCDE

match

However, the following codes do not match, because all the characters of the file codes are not included in the user code:

File Code

User Code

Result

ABC

AB

no match

AXY

ABC

no match

The following MultiValued codes match:

File Code

User Code

Result

B

A]B]C

match

XY

AB]XYZ

match

However, the following MultiValued codes do not match, because all the characters of the file codes are not included in one of the MultiValued user codes:

File Code

User Code

Result

AB

A]B]C

no match

XYZ

AB]XY

no match

If the accessed file is in another account, the update and retrieval codes in the User-ID will be matched against the update and retrieval codes in all of the following:

All these file codes must match the user codes in order for the user to access the file.

If a file code in the file to be accessed is MultiValued, only the first value of the file code is used to match the user code.

See Also

Implementing MultiValue Security

Line 1: Using D Codes in Account Attributes

Line 7: Assigning, Changing and Deleting Account Passwords

Line 8: Using System Privilege Level Codes

Line 9: Using Automatic Logoff

Line 9: Using Account Definition Codes

Line 9: Restricting Access to TCL and Commands

Line 12: Using Process Codes

Using the Accounting History File (ACC)

Using the Security Log File

An Example of a MultiValue Security Scheme

Security-Related Command Summary