SLTCMD (Select Command)

SLTCMD Command syntax diagram

 

Purpose

The Select Command (SLTCMD) command produces a list of commands from a user-specified subset of command names. From this list, only the option to select the command is available.

 

Restrictions

  1. Only the libraries to which the user has USE authority will be searched.
  2. Only the commands to which the user has some authority will be shown on the display.
  3. To perform operations on the commands, the user must have USE authority to the command used by the operation, and the appropriate authority to the commands on which the operation is to be performed.

 

Required Parameters

CMD
Specifies the qualified name of the commands being shown on the Select Command display.

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

*LIBL: All libraries in the job's library list are searched. All objects in these libraries with the specified object name are shown.

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

*USRLIBL: Only the libraries in the user portion of the job's library list are searched.

*ALLUSR Libraries

*ALL: All libraries in the system, including QSYS, are searched.

library-name: Specify the name of the library to be searched.

*ALL: All commands in the libraries specified are listed on the Select Command display.

generic*-command-name: Specify the generic name of the command being listed. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name. If the complete object name is specified, and multiple libraries are searched, multiple objects can be selected only if *ALL or *ALLUSR library values can be specified for the name. For more information on the use of generic names, refer to generic names.

command-name: Specify the name of the command being listed.

Example for SLTCMD

SLTCMD  CMD(QSYS/*ALL)

This command shows a list of all commands in library QSYS. The option to prompt and run commands is available.

No error messages.