CL Command Reference - DSPDSTL
CL Command List > DSPDSTL Reference
Description:
The Display Distribution List (DSPDSTL) command is used to display, print, or create a database output file for distribution lists contained in the distribution directory. No distribution lists can be created or deleted, nor can updates be made to existing lists from this command.
Examples:
Example 1: Displaying a List
DSPDSTL LSTID(*ALL) OUTPUT(*)
This command displays a list of all distribution lists in the directory. Specifying DSPDSTL without parameters would result in the same action.
Example 2: Printing a List
DSPDSTL LSTID(DEPT48K DISTLIST) OUTPUT(*PRINT)
This command prints a list of all entries in the distribution list DEPT48K DISTLIST. The detail parameter is not used when printing for a specific list.
Example 3: Directing Output to a Database File
DSPDSTL OUTPUT(*OUTFILE)
OUTFILE(ALLLISTS) OUTMBR(*FIRST *REPLACE)
DETAIL(*BASIC)
This command writes one record for each distribution list contained in the directory to the database file ALLLISTS. If this file is not found in the library list, it is created in the QGPL library, since no library is specified.
Example 4: Directing Output for a Distribution List Owner to a Database File
DSPDSTL OWNER(ABSMITH) OUTFILE(DISTLIST/ABSMITH)
OUTMBR(*FIRST *REPLACE) DETAIL(*BASIC)
This command writes one record for each distribution list owned by user profile ABSMITH to the database file ABSMITH in the library DISTLIST. If this file is not found in the library DISTLIST, it is created.