Display Software Resources (DSPSFWRSC)

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

The Display Software Resources (DSPSFWRSC) command allows you to show, print, or write to an output file the list of installed software resources.

Top

Parameters

Keyword Description Choices Notes
OUTPUT Output *, *PRINT, *OUTFILE Optional, Positional 1
OUTFILE File to receive output Qualified object name Optional, Positional 2
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

Output (OUTPUT)

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

The possible values are:

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

Note: If OUTPUT(*OUTFILE) is used, the name of the database file is required.

Top

File to receive output (OUTFILE)

Specifies the name and library of 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 a new file is created, the system uses the physical file QARZLCOF in the library list as a model file. The file has a record format name of QARZLCGD. Field level information can be obtained using the Display File Field Description (DSPFFD) command and specifying QARZLCOF as the file name and *LIBL as the library. If this function creates the file, the text says "Output file for DSPSFWRSC". The authority for users other than those who have specific authority, group authority, or authority from an authorization list, is the same as the create authority specified for the library in which the file is created. This parameter is valid only if OUTPUT(*OUTFILE) is specified.

The name of the database file can be qualified by one of the following library values:

*LIBL
All libraries in the job's library list are searched until the first match is found.
*CURLIB
The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
library-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.

The possible values are:

*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.
member-name
Specify the name of the file member that receives the output. If OUTMBR(member-name) is specified and the member does not exist, the system creates it. If the member exists, you have the option to add records to the end of the existing member, or clear the existing member and then add the new records.

The optional values are:

*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

DSPSFWRSC   OUTPUT(*OUTFILE)  OUTFILE(*CURLIB/NAMES)

This command sends the output from the command to the first member of the file NAMES in the current library. The output replaces the information in the member.

Top

Error messages

*ESCAPE Messages

CPF0C4A
Product record not found.
CPF0C4B
Product availability object &2/&1 recovery required.
CPF0C4C
Cannot allocate object &1 in library &2.
CPF0C4D
Error occurred while processing object &1 in library &2.
CPF0C54
Data in product record not correct.
CPF9860
Error occurred during output file processing.
CPF9871
Error occurred while processing.
Top