Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
NOTES
USRD LOCATION LSTNAM BLDG FSTNAM OFC MIDNAM ADDR1 PREFNAM ADDR2 FULNAM ADDR3 DEPT ADDR4 TITLE TEXT CMPNY USRDFNFLD
Restriction: You must have security administrator authority or be a security officer to use this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
USRID | User identifier | Element list | Required, Positional 1 |
Element 1: User ID | Character value | ||
Element 2: Address | Character value | ||
USRD | User description | Character value | Required, Positional 2 |
USER | User profile | Name, *NONE | Optional, Positional 3 |
SYSNAME | System name | Single values: *LCL, *PC, *ERROR Other values: Element list |
Optional |
Element 1: System name | Character value | ||
Element 2: System group | Character value | ||
NETUSRID | Network user ID | Character value, *USRID | Optional |
LSTNAM | Last name | Character value, *NONE | Optional |
FSTNAM | First name | Character value, *NONE | Optional |
MIDNAM | Middle name | Character value, *NONE | Optional |
PREFNAM | Preferred name | Character value, *NONE | Optional |
FULNAM | Full name | Character value, *DFT | Optional |
DEPT | Department | Character value, *NONE | Optional |
TITLE | Job title | Character value, *NONE | Optional |
CMPNY | Company | Character value, *NONE | Optional |
TELNBR1 | Telephone number 1 | Character value, *NONE | Optional |
TELNBR2 | Telephone number 2 | Character value, *NONE | Optional |
FAXTELNBR | FAX telephone number | Character value, *NONE | Optional |
LOC | Location | Character value, *NONE | Optional |
BLDG | Building | Character value, *NONE | Optional |
OFC | Office | Character value, *NONE | Optional |
ADDR1 | Address line 1 | Character value, *NONE | Optional |
ADDR2 | Address line 2 | Character value, *NONE | Optional |
ADDR3 | Address line 3 | Character value, *NONE | Optional |
ADDR4 | Address line 4 | Character value, *NONE | Optional |
INDUSR | Indirect user | *NO, *YES | Optional |
PRTPERS | Print private mail | *NO, *YES | Optional |
PRTCOVER | Print cover page | *YES, *NO | Optional |
NFYMAIL | Mail notification | *SPECIFIC, *ALLMAIL, *NOMAIL | Optional |
NFYPTYPERS | Priority, private, important | *YES, *NO | Optional |
NFYMSGS | Messages | *YES, *NO | Optional |
TEXT | Text | Character value, *NONE | Optional |
CMDCHRID | Command character identifier | Single values: *SYSVAL, *DEVD Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer | ||
COUNTRY | Country or region ID | Character value, *NONE | Optional |
ADMD | Administration domain | Character value, *NONE | Optional |
PRMD | Private management domain | Character value, *NONE | Optional |
SURNAM | Surname | Character value, *NONE, *LSTNAM | Optional |
GIVENNAM | Given name | Character value, *NONE, *FSTNAM | Optional |
INITIALS | Initials | Character value, *NONE | Optional |
GENQUAL | Generation qualifier | Character value, *NONE | Optional |
ORG | Organization | Character value, *NONE | Optional |
ORGUNIT | Organizational units | Single values: *NONE Other values (up to 4 repetitions): Character value |
Optional |
DMNDFNATR | Domain-defined attributes | Single values: *NONE Other values (up to 4 repetitions): Element list |
Optional |
Element 1: Type | Character value | ||
Element 2: Value | Character value | ||
USRDFNFLD | User-defined fields | Single values: *NONE Other values (up to 100 repetitions): Element list |
Optional |
Element 1: Field name | Character value | ||
Element 2: Product ID | Character value, *NONE | ||
Element 3: Value | Character value | ||
MSFSRVLVL | Mail service level | Single values: *USRIDX, *SYSMS, *DOMINO Other values: Element list |
Optional |
Element 1: Field name | Character value | ||
Element 2: Product ID | Character value, *NONE | ||
PREFADR | Preferred address | Element list | Optional |
Element 1: Field name | Character value, *USRID, *ORNAME, *SMTP | ||
Element 2: Product ID | Character value, *NONE | ||
Element 3: Address type | Character value | ||
CCMAILADR | cc:Mail address | Character value, *NONE | Optional |
CCMAILCMT | cc:Mail comment | Character value, *NONE | Optional |
ALWSYNC | Allow synchronization | *YES, *NO | Optional |
DLOOWN | DLO owner | *USRPRF, *GRPPRF | Optional |
Top |
Specifies the user ID and address for the new user. Both parts must be provided. The user ID and address are changed to upper case characters and are translated to the common character set and code page '697 500'. More information about specifying the user ID and address can be found in the SNA Distribution Services book, SC41-5410.
*ANY can be entered for the user ID and address. *ANY is the default entry that is used in distributions when an exact match is not made on the user ID and address, but the address matches a *ANY address. For example, *ANY CHICAGO is valid. HURST *ANY is not valid. Only one *ANY *ANY default entry is allowed in the directory.
This is a required parameter.
If any lowercase characters are specified, the system changes them to, and stores them as, uppercase characters.
Top |
Specifies the description associated with the user ID and address. For example, the description can contain the user's name or job title. By using a consistent naming convention such as "last name, first name" for the description, entries can be easily located while sorting by description from the Work with Directory display.
This is a required parameter.
Top |
Specifies the user profile of the user being added to the directory. If the user being added is a local user, a valid profile must exist on the local system (and it must be specified). If the user is a remote user, no profile exists on the local system and *NONE should be specified.
Top |
Specifies the one- or two-part name of the system on which the user works. If a two-part system name is specified on the command line, up to 8 characters make up both the system name and the system group name. The parts should be separated by at least one space.
A remote user can be added to the directory before the system name and system group are defined in the network tables, but distributions cannot be sent to that user until the remote system name and system group are defined. The remote system name and system group name are defined by using the Configure Distribution Services (CFGDSTSRV) command. Additional information on defining a remote system name and group name is in the SNA Distribution Services book, SC41-5410.
*ERROR is valid only when *ANY address or *ANY *ANY is specified on the User identifier (USRID) parameter.
A remote user can be added to the directory before the system name and system group are defined in the network tables, but distributions cannot be sent to that user until the system name and system group are defined. The remote system name and system group are defined by using the Configure Distribution Services (CFGDSTSRV) command.
Top |
Specifies the unique network user ID for this directory entry. This ID is used during directory shadowing to uniquely identify a user in a network.
Top |
Specifies the last name of the user. If no names are provided (last, first, middle, preferred, or full) but a value is specified on the Department (DEPT) parameter, the last name defaults to an asterisk (*).
Top |
Specifies the first name of the user.
Top |
Specifies the middle name of the user.
Top |
Specifies the name by which the user likes to be addressed.
Top |
Specifies the user's full name. This field can be entered by an administrator, or it can be built by the system. If the administrator enters data in this field, it is stored in the format in which it is entered. If the full name is not specified, it is created by the system as follows:
Note: Only an administrator can change this field.
Top |
Specifies the name or number of the department of which the user is a member.
Restriction: Only an administrator can change this field.
Top |
Specifies the user's job title, such as marketing director, account manager, or production engineer.
Top |
Specifies the name of the company for which the user works.
Top |
Specifies the user's primary telephone number. The telephone number can be specified in any format appropriate to the user, including an international telephone number format.
Top |
Specifies the user's secondary telephone number. The telephone number can be specified in any format appropriate to the user, including an international telephone number format.
Top |
Specifies the user's facsimile telephone number. The facsimile telephone number can be specified in any format appropriate for the user, including an international telephone number format.
Top |
Specifies the location of the user's business or system.
Top |
Specifies the name of the building in which the user works.
Top |
Specifies the name or number of the user's office.
Top |
Specifies the user's mailing address. A maximum of 40 characters can be entered into each of these fields.
Top |
Specifies the user's mailing address. A maximum of 40 characters can be entered into each of these fields.
Top |
Specifies the user's mailing address. A maximum of 40 characters can be entered into each of these fields.
Top |
Specifies the user's mailing address. A maximum of 40 characters can be entered into each of these fields.
Top |
Specifies whether the user being added is an indirect user. An indirect user is a local user who does not sign on the system to receive mail. Mail is automatically printed for the indirect user. Each indirect user must have a profile on the local system.
Top |
Specifies whether private mail for an indirect user is printed. Consideration should be given to restricting public access to the printer when private mail is printed. This parameter is ignored if the user is not an indirect user.
Top |
Specifies whether a cover page is printed when a mail item is printed. This parameter is ignored when a remote user is added to the directory because remote users do not receive mail on this system.
Top |
Specifies whether the user is notified of the arrival of mail by receiving a message on the user's message queue. This parameter is ignored when a remote user is added to the directory because remote users do not receive mail on this system.
Top |
Specifies whether the user is notified of the arrival of priority, private, and important mail. This parameter is ignored if *NOMAIL or *ALLMAIL is specified on the Mail notification (NFYMAIL) parameter.
Top |
Specifies whether the user is notified of the arrival of messages. This parameter is ignored if *NOMAIL or *ALLMAIL is specified on the Mail notification (NFYMAIL) parameter.
Top |
Specifies the text that briefly describes the object.
Top |
Specifies the character identifier (graphic character set and code page) for the data being entered as command parameter values. The value you specify on this parameter applies to the User identifier (USRID) parameter, System name (SYSNAME) parameter, Department (DEPT) parameter, and to all of the X.400 O/R name parameters.
Note:
Note: Double byte character set (DBCS) characters can be entered on the following system directory entry parameters:
Single values
Element 1: Graphic character set
Element 2: Code page
Top |
Specifies the country or region part of the X.400 Originator/Recipient (O/R) name.
Top |
Specifies the administration management domain part of the X.400 O/R name.
Top |
Specifies the private management domain part of the X.400 O/R name.
Top |
Specifies the X.400 user last name part of the personal name within the X.400 O/R name.
Note: This parameter is required when a value is specified on the GIVENNAM, INITIALS or GENQUAL, parameter.
Top |
Specifies the X.400 user first name part of the personal name within the X.400 O/R name.
Note: The SURNAM parameter is required when a value is specified on this parameter.
Top |
Specifies the initials part of the personal name within the X.400 O/R name. For example, the initials for 'John Henry Smith' are 'JH.'
Note: The SURNAM parameter is required when a value is specified on this parameter.
Top |
Specifies the generation qualifier part of the personal name within the X.400 O/R name. For example, the generation qualifier in the name 'John R. Smith, III' is 'III.'
Note: The SURNAM parameter is required when a value is specified on this parameter.
Top |
Specifies the organization name part of the X.400 O/R name.
Top |
Specifies the organization-defined unit part of the X.400 O/R name.
Top |
Specifies the type and value of a domain-defined attribute not specified by X.400 standards but allowed in the X.400 O/R name to accommodate existing systems of sending messages. A maximum of 4 sets of attributes can be specified.
Note: To specify an X.121 address, type X.121 in the Type field, and then type the X.121 address in the Value field. A maximum of 15 numeric characters can be specified for the X.121 address.
If you are specifying other domain-defined attributes, the X.121 pair must be the last attribute specified. You must also specify a value for the Country or region field if you specify an X.121 address.
X.121 is a CCITT Recommendation that provides a method for the international numbering of X.25 packet-switching data networks.
The possible type values are:
The possible value values are:
Top |
Specifies the user-defined field names and values. A list of these user-defined field names can be displayed using the CHGSYSDIRA command and prompting with the F4 key. Up to 100 user-defined fields can be specified.
Note: The following SMTP user-defined fields are not always displayed when the CHGSYSDIRA command is prompted, but they can still be used in the user-defined field (USRDFNFLD) parameter to add SMTP information to the system distribution directory.
The possible single value is:
The possible User-Defined Field Name value is:
The possible User-Defined Field Product ID values are:
The possible User-Defined Field Value value is:
Top |
Specifies the mail server framework service level for a local user. This value is ignored for a remote user. It indicates where mail is stored on the system.
The possible Mail service level field-name value is:
The possible mail service level product-ID values are:
Top |
Specifies the preferred address for a user. This tells the mail server framework what fields to use in the system distribution directory for the preferred address of a user. Specify *USERID for SNADS. SNADS handles all the mail that goes to a user index including the gateway for X.400 O/R names and Simple Mail Transfer Protocol (SMTP) names.
The possible single values are:
The possible Preferred address field-name value is:
The possible Preferred address product-ID values are:
The possible Preferred address address-type values are:
Top |
Specifies the cc:Mail address for this user.
Top |
Specifies the cc:Mail comment for this user.
Top |
Specifies whether synchronization of this entry with other directories should be allowed.
Top |
Specifies if the user profile or the group profile will be assigned the ownership of the Document Library Objects (DLOs) for this directory entry.
Note: If this directory entry does not have a user profile in the User profile field, the value in the DLO owner field will be ignored.
Top |
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:
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.
Top |
*ESCAPE Messages
Top |