Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Access Code (ADDACC) command allows you to define a new access code to the system for later use when securing a document or folder, or on commands dealing with object authority or access authority. The Add Access Code (ADDACC) command identifies both the access code added and the descriptive text that is associated with the access code.
Restrictions:
To use this command, you must have all object (*ALLOBJ) authority.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
ACC | Document access code | 1-2047, *AVAIL | Required, Positional 1 |
TEXT | Text 'description' | Character value | Required, Positional 2 |
Top |
Specifies the access code that is added to the system. The access code must not be currently defined on the system.
This is a required parameter.
Top |
Specifies the text that briefly describes the object.
This is a required parameter.
Top |
Example 1: Adding an Access Code
ADDACC ACC(700) TEXT('programmers')
This command adds access code 700 to the system. This access code is authorized to all programmers (after the GRTACCAUT command is run). It is used when filing documents to which all programmers may have access.
Example 2: Adding Next Available Access Code
ADDACC ACC(*AVAIL) TEXT('department managers')
This command adds the next available access code to the system. This access code is authorized to all department managers (after the GRTACCAUT command is run). It is used when placing in the document library objects to which all department managers may have access. The system returns a message containing the access code that was being used.
Top |
*ESCAPE Messages
Top |