CL Command Reference - DSPNCK

CL Command List > DSPNCK Reference

Description:

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.

Output from this command is directed as follows:
. For displayed output, the default is to display a list of all nicknames. When a nickname is specified, detailed information on that nickname only is displayed.
. For printed or database file output, the default is to write all nicknames to which the user has access. When a nickname is specified, detailed information on that nickname only is written to the output file.

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.


Examples:

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.