Display DLO Auditing Level (DSPDLOAUD)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Display Document Library Object Audit (DSPDLOAUD) command allows the user to display the auditing level of a document or folder.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
DLO Document library object Character value, *SYSOBJNAM, *ROOT, *ALL Required, Positional 1
FLR Folder Character value, *NONE, *ANY, *ROOT Optional, Positional 2
SYSOBJNAM System object name Name Optional
OUTPUT Output *, *PRINT, *OUTFILE Optional
TYPE Type of object *FLR, *DOC, *ALL Optional
LEVEL Level of list *CURRENT, *ALL Optional
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
Top

Document library object (DLO)

Specifies the name of the document or folder whose auditing value is displayed.

*ALL
The auditing levels for all DLOs in the specified folder are displayed.
*ROOT
The auditing level for the *ROOT level folder is displayed. The *ROOT level folder contains the default auditing level for all new first-level folders.
*SYSOBJNAM
The auditing level for the document or folder with the system object name specified on the System object name (SYSOBJNAM) parameter is displayed.
name
Specify the document library object for which the auditing level is displayed.
Top

Folder (FLR)

Specifies the folder containing the document library object whose auditing level is displayed.

*NONE
The document or folder is not contained in a folder.
*ANY
The auditing levels of all DLOs on the system are displayed.
*ROOT
The auditing level of all first-level folders is displayed.
name
Specify the name of the folder that contains the document library object for which the auditing level is displayed.
Top

System object name (SYSOBJNAM)

Specifies the system object name. This parameter is valid only when DLO(*SYSOBJNAM) is specified.

name
Specify the system object name for the folder or document displayed. Ten characters must be specified.
Top

Output (OUTPUT)

Specifies where the output from the command is sent.

*
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.
Top

Type of object (TYPE)

Specifies whether the documents or folders contained in the folder specified on the FLR parameter are displayed. This parameter is valid when FLR(name) is specified and is defaulted in all other cases. When DLO(*ALL) FLR(*ANY) is specified, TYPE(*ALL) is used. When DLO(*ALL) FLR(*ROOT) is specified, TYPE(*FLR) is used. When DLO(*ALL) FLR(*NONE) is specified, TYPE(*DOC) is used. When a single object is specified on the command, the TYPE parameter is ignored.

*FLR
The folders contained in the specified folder are displayed.
*DOC
The documents contained in the specified folder are displayed.
*ALL
The documents and folders contained in the specified folder are displayed.
Top

Level of list (LEVEL)

Specifies whether documents and folders at nested levels in the specified folder are displayed.

*CURRENT
Only the documents and folders at the current level are included in the output.
*ALL
The documents and folders at all levels are included in the output.
Top

File to receive output (OUTFILE)

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.

Qualifier 1: File to receive output

name
Specify the name of the database file to which the command output is directed.

Qualifier 2: Library

*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
Specify the name of the library to be searched.
Top

Output member options (OUTMBR)

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

Element 1: Member to receive output

*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.

Element 2: Replace or add records

*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.
Top

Examples

Example 1: Displaying an Auditing Level

DSPDLOAUD   DLO(MYDOC)  FLR(MYFLR)

This command displays the auditing level of document MYDOC in folder MYFLR.

Example 2: Printing Auditing Levels

DSPDLOAUD   DLO(*ALL)  FLR(*ROOT)  OUTPUT(*PRINT)

This command prints the auditing levels of all first-level folders on the system.

Example 3: Listing all Auditing Levels

DSPDLOAUD   DLO(*ALL)  FLR(*ANY)
            OUTPUT(*OUTFILE)  OUTFILE(MYLIB/MYFILE)

This command lists the auditing levels of all DLOs on the system in the output file MYFILE in library MYLIB.

Top

Error messages

*ESCAPE Messages

CPF89B0
Error occurred during output of list.
CPF89B1
Auditing level is not displayed because error occurred.
CPF9860
Error occurred during output file processing.
Top