Add Department (QOKADDDP) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Add Department (QOKADDDP) API adds departments to the system distribution directory. To add and remove members from within a department use the DEPT parameter on the Add Directory Entry (ADDDIRE) and Change Directory Entry (CHGDIRE) CL commands.


Authorities and Locks

Adding a department requires *SECADM (security administrator) authority.


Required Parameter Group

Department
INPUT; CHAR(10)

The department name to add. The department name must not be blank.

Title
INPUT; CHAR(50)

The descriptive title of the department. The title can be left blank.

Manager
INPUT; CHAR(16)

The department manager's user ID and address. The first 8 characters contain the user ID and the last 8 contain the address. The manager user ID and address must exist in the system distribution directory if specified. The manager field can be left blank.

Reports to department
INPUT; CHAR(10)

The department to which this department reports. If a department that does not exist in the system distribution directory is specified, it is automatically created. This field can be left blank.

Allow duplicate departments
INPUT; CHAR(1)

Whether to allow duplicate department names. The valid values are:

The department name value is not case sensitive when checking for duplicate departments.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V3R6

[ Back to top | Office APIs | APIs by category ]