CL Command Reference - ADDACC

CL Command List > ADDACC Reference

Description:

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.


Examples:

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.