Command reference / prog
DSPMOD
Display Module
The Display Module (DSPMOD) command displays information about a module. The display includes information about the compiler, the source from which the module was created, the processing attributes of the module, and the size of the module.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- You must have use (*USE) authority to the module being displayed and execute (*EXECUTE) authority to the library in which the module is stored.
Parameters
MODULE
Module
Specifies the module for which information is to be displayed. This is a required parameter.
name (Module)- Specify the name of the module for which information is displayed.
*LIBL- All libraries in the library list for the current thread 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.
name (Library)- Specify the name of the library to be searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Module
Module
Library
Library
Suggested / special values:
*LIBL, *CURLIB
DETAIL
Detail
Specifies which set of information is displayed for the module.
Allowed values:
*ALL, *BASIC, *SIZE, *EXPORT, *IMPORT, *PROCLIST, *REFSYSOBJ, *COPYRIGHT
*ALL- All the information applicable to the specified module is displayed or printed. Note: DETAIL(*ALL) is valid only when information is displayed or printed. It is not valid if *OUTFILE is specified for the Output (OUTPUT) parameter.
*BASIC- The basic module information, module compatibility section, and SQL information is shown.
*SIZE- The size and size limits for this module are shown.
*EXPORT- The symbols defined in this module that are exported to other modules are shown.
*IMPORT- The symbols defined externally to this module are shown.
*PROCLIST- A list of the procedure names with their type and priority is shown.
*REFSYSOBJ- A list of the system objects referred to by this module when the module is bound into a bound program or service program is shown.
*COPYRIGHT- Copyright information for this module is shown.
OUTPUT
Output
Specifies whether the output from this command is displayed, printed, or directed to a database file.
Allowed values:
*, *PRINT, *OUTFILE
*- Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.
*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: When a procedure name longer than 256 characters is encountered and the value *OUTFILE is specified, the last 253 characters of the procedure name are placed in the output file and are preceded by three less than (<<<) characters. The less than (<<<) characters indicate that this is only a partial name. The diagnostic message CPD5D12, which indicates that not all available information is returned, is sent to the job log. The same message is sent as a status message to the calling program of the command processing program (CPP) that can be monitored. You can use the Retrieve Module Information (QBNRMODI) or the List Module Information (QBNLMODI) APIs to find the complete name of the procedure. Note: DETAIL(*ALL) is not valid when OUTPUT(*OUTFILE) is specified.
Examples
DSPMOD MODULE(MYMOD)
This command displays module object MYMOD from the library list.
Generated from os/cl/catalog/DSPMOD.json and os/cl/help/DSPMOD.json.