Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LSTID | List identifier | Single values: *ALL Other values: Element list |
Optional, Positional 1 |
Element 1: List ID | Character value | ||
Element 2: List ID qualifier | Character value | ||
OWNER | Owner | Name, *ALL, *CURRENT | Optional, Positional 2 |
OUTPUT | Output | *, *PRINT, *OUTFILE | Optional, Positional 3 |
OUTFILE | File to receive output | Qualified object name | Optional |
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 | ||
DETAIL | Detail | *BASIC, *FULL | 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 |
Top |
Specifies which distribution lists to display, print, or direct to a database file.
The possible list identifier value is:
The possible list qualifier value is:
Note: The distribution list identifier has two parts, the ID and the qualifier, separated by at least one space. If lowercase characters are specified, the system changes them to uppercase.
The naming rules for the two-part list ID are identical to the rules for the user ID and address. A complete description of these rules is in the SNA Distribution Services book, SC41-5410.
Top |
Specifies the owner of the distribution lists 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 the output of the display is directed. If the output file does not exist, this command creates a database file in the specified library. If no library is specified, the database file is created in QGPL.
If the file is created, the text is 'OUTFILE created by DSPDSTL' and the public authority to the file is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the library's create authority.
The possible library values are:
Note: If a new file is created, system file QAOSDSTO in system library QSYS with a format name of OSDSTL is used as a model.
Top |
Specifies the name of the database file member to which the output of the display is directed. If a member already exists, the system uses the second part 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 file specified on the File to receive output (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 replace or add records values are:
Top |
Specifies how much detail should be printed or directed to the database file. This parameter is not used when * is specified on the Output (OUTPUT) parameter or when a specific list ID was specified on the List identifier (LSTID) parameter. When *ALL is specified on the LSTID parameter, this parameter is used to determine whether a list of all distribution lists or a list of all entries in every distribution list is used as the output.
Top |
Specifies the character identifier (graphic character set and code page) for the data being entered as command parameter values.
Note:
Single values
Element 1: Graphic character set
Element 2: Code page
Note:
Top |
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.
Top |
*ESCAPE Messages
Top |