Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Display Nickname (DSPNCK) command is used to display, print, or create a database output file for nicknames in the system distribution directory.
A nickname is a short version of either a directory entry or a distribution list name. More information about nicknames is in the SNA Distribution Services book, SC41-5410.
Output from this command is directed as follows:
Restriction: You must be the owner to display a private nickname. No special authority is needed to display a private nickname that you own or a public nickname.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
NCK | Nickname | Element list | Optional, Positional 1 |
Element 1: Nickname | Character value, *ALL | ||
Element 2: Access | *PRV, *ALL, *PRIVATE, *PUBLIC | ||
TYPE | Type of nickname | *ALL, *USER, *LIST | Optional |
OWNER | Owner | Name, *ALL, *CURRENT | Optional, Positional 2 |
OUTPUT | Output | *, *PRINT, *OUTFILE | Optional, Positional 3 |
OUTFILE | File to receive output | Qualified object name | Optional, Positional 4 |
Qualifier 1: File to receive output | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OUTMBR | Output member options | Element list | Optional |
Element 1: Member to receive output | Name, *FIRST | ||
Element 2: Replace or add records | *REPLACE, *ADD |
Top |
Specifies the nicknames to display, print, or write to a database file.
The possible nickname values are:
The possible nickname access values are:
Top |
Specifies the type of nicknames (user or list) to display, print, or write to a database file.
Top |
Specifies the owner of the nicknames to display, print, or write to a database file.
Top |
Specifies whether the output from the command is shown at the requesting work station, printed with the job's spooled output or written to a database file.
Top |
Specifies the name of the database file to which output is to be directed. If the file does not exist, this command creates the database file in the specified library. Text for the created file is "OUTFILE for DSPNCK" and the public authority is *EXCLUDE.
Note: This parameter is required when OUTPUT(*OUTFILE) is specified.
The name of the database file can be qualified by one of the following library values:
The possible value is:
Top |
Specifies the name of the database file member to which the output is directed. If a member already exists, the system uses the second element of this parameter to determine whether the member is cleared before the new records are added. If the member does not exist and a member name is not specified, the system creates a member with the name of the output file specified on the OUTFILE parameter. If an output file member name is specified, but the member does not exist, the system creates it.
The possible Member to Receive Output Values are:
The possible Action on Member values are:
Top |
Example 1: Displaying a List of Nicknames
DSPNCK NCK(*ALL *PRIVATE)
This command shows a list of private nicknames to the owner of the nicknames. The owner can request to show or print additional information for the nicknames shown.
Example 2: Printing a List of Nicknames
DSPNCK NCK(MANAGER *PRIVATE) OUTPUT(*PRINT)
This command prints detailed information on the user's private nickname MANAGER.
Example 3: Directing Nicknames to a Database File
DSPNCK NCK(*ALL *PUBLIC) OUTPUT(*OUTFILE) OUTFILE(ALLNICKS) OUTMBR(*FIRST *REPLACE)
This command directs one record for each public nickname in the directory to the database file ALLNICKS. If this file is not found in the library list (the default library qualifier), it is created in the user's default library or in the QGPL library if no user default library is specified.
Example 4: Directing Nicknames for an Owner to a Database File
DSPNCK NCK(*ALL *PUBLIC) OWNER(CDJONES) OUTPUT(*OUTFILE) OUTFILE(NICKNAME/CDJONES) OUTMBR(*FIRST *REPLACE)
This command directs one record for each public nickname owned by the user whose user profile is CDJONES to the database file CDJONES in the library NICKNAME. If this file is not found in the library NICKNAME, it is created.
Top |
*ESCAPE Messages
Top |