CL Command Reference - ADDDIRE
CL Command List > ADDDIRE Reference
Description:
The Add Directory Entry (ADDDIRE) command allows you to add new entries to the system distribution directory. The directory contains information about a user, such as the user ID and address, system name, user profile name, mailing address, telephone, number, and other user information. The ADDDIRE command provides a parameter for each of the fields contained in the directory.
The ADDDIRE command does not provide interactive display support. This is provided by the Work with Directory Entries (WRKDIRE) command.
An X.400 originator/recipient (O/R) name can be added to the directory with this command. X.400 is an international standard for communications and the O/R name is the addressing information used in X.400 communications. The X.400 O/R name must be in character set 1169 and code page 500. This set includes A through Z, 0 through 9, and some special characters. Additional information on characters allowed is in the Globalization information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Restriction:
You must have security administrator authority or be a security officer to use this command.
Examples:
Example 1: Adding a Local User
ADDDIRE USRID(HURST PAYROLL)
USRD(¡¯Manager of Payroll¡¯) USER(ABHURST)
LSTNAM(Hurst) FSTNAM(Arthur) PREFNAM(Art) DEPT(55K)
ADDR1(¡¯Dept55K/025-3¡¯)
ADDR2(¡¯IBM Rochester¡¯)
ADDR3(¡¯Highway 52 North¡¯)
ADDR4(¡¯Rochester, MN 55904¡¯)
LOC(¡¯Main Office¡¯) BLDG(025-3) OFC(E219)
TELNBR1(¡¯435-422-2120¡¯) TELNBR2(¡¯435-422-1012¡¯)
FAXTELNBR(¡¯435-422-3296¡¯) DLOOWN(*GRPPRF)
This command adds a local user to the distribution directory by allowing the system name parameter to default to *LCL. Since this is a local user, the user profile is specified. Address lines, location, and telephone numbers have been specified. Since the TEXT parameter is not used, it defaults to *NONE. This user is not an indirect user since the INDUSR parameter defaulted to *NO.
The user¡¯s last, first, and preferred names are specified. The full name was not specified, so FULNAM(*DFT) is used and will be created as, ¡¯Hurst, Arthur (Art)¡¯. This user has been added as a member of the department named 55K. If this department is searched, then ¡¯Hurst, Arthur (Art)¡¯ will be included on the search list.
Any newly created DLOs associated with this directory entry, HURST PAYROLL, will be owned by the group profile specified in the Group Profile field in user profile ABHURST. The user entry is added to the directory if each one of the following is true:
1. A user ID and address HURST PAYROLL is not already in the directory.
2. The user profile name ABHURST is not already in the directory.
Example 2: Adding a Remote User
ADDDIRE USERID(BYRD NEWYORK) USRD(¡¯Arthur J. Byrd¡¯)
USER(*NONE) SYSNAME(BOCA)
LOC(¡¯Boca Raton, Florida¡¯) DEPT(61Q)
This command adds a remote user entry to the distribution directory. Since this is a remote user, the USER(*NONE) parameter is specified. The system name without the system group is specified. Except for the location, all of the parameters use default values. If the user-ID and address are unique, the user entry is added to the directory as a remote user.
If you are using directory shadowing, you do not need to add remote users as these users can be shadowed to your system.
If a department value is specified for this user, but no user name is specified, the last name is set to ¡¯*¡¯. The full name is also ¡¯*¡¯ because it is created from the last name. This is done because the directory requires a non-blank name with department.