Command reference / sec

DSPAUTL

Display Authorization List

The Display Authorization List (DSPAUTL) command shows the list of users (and their levels of authority) that make up the authorization list. When an authorization list is first shown, the specific authorities shown are determined by the level of detailed information specified on the USROPT parameter in the user profile. When the DSPAUTL command is used to display an authorization list, the user specifies the name of the authorization list, whether the authorization list should be shown on the display or sent to a printer, or (optionally) whether the output should be sent to an OUTFILE. The QSYS2.AUTHORIZATION_LIST_USER_INFO view returns similar information.

Allowed environments: *ALL. Positional parameters: 2.

Parameters

AUTL Authorization list

Specifies the authorization list to be shown. This is a required parameter.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase
name
Specify the name of the authorization list.

OUTPUT Output

Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
8
Case
Uppercase

Allowed values: *, *PRINT, *OUTFILE

*
The output is displayed (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job).
*PRINT
The output is printed with the job's spooled output.
*OUTFILE
The output is directed to the database file specified for the File to receive output (OUTFILE) parameter.

OUTFILE File to receive output

Specifies the database file to which the output of the command is directed. If the file does not exist, this command creates a database file in the specified library. If the file is created, the public authority for 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. Note: If a new file is created, system file QAOBJAUT in system library QSYS with a format name of QSYDSAUT is used as a model.

Type
*QUAL
Required
No
Case
Uppercase
name (File to receive output)
Specify the name of the database file to which the command output is directed.
*LIBL
The library list is used to locate the file. If the file is not found, one is created in the current library. If no current library exists, the file will be created in the QGPL library.
*CURLIB
The current library for the thread is used to locate the file. If no library is specified as the current library for the thread, the QGPL library is used.
name (Library)
Specify the name of the library to be searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

File to receive output File to receive output

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

OUTMBR Output member options

Specifies the name of the database file member that receives the output of the command.

Type
*ELEM
Required
No
Case
Uppercase
*FIRST
The first member in the file receives the output. If OUTMBR(*FIRST) is specified and the member does not exist, the system creates a member with the name of the file specified for the File to receive output (OUTFILE) parameter. If the member already exists, you have the option to add new records to the end of the existing member or clear the member and then add the new records.
name
Specify the name of the file member that receives the output. If it does not exist, the system creates it.
*REPLACE
The system clears the existing member and adds the new records.
*ADD
The system adds the new records to the end of the existing records.
Elements in order

Member to receive output Member to receive output

Type
*NAME
Required
No
Default
*FIRST
Length
10
Case
Uppercase

Suggested / special values: *FIRST

Replace or add records Replace or add records

Type
*CHAR
Required
No
Default
*REPLACE
Length
8
Case
Uppercase

Allowed values: *REPLACE, *ADD

Examples

DSPAUTL AUTL(DEPT48X) OUTPUT(*PRINT)

This command sends the display of the authorization list to the printer.

IBM command documentation

Generated from os/cl/catalog/DSPAUTL.json and os/cl/help/DSPAUTL.json.