Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Create Proxy Command (CRTPRXCMD) command creates a new user-defined proxy command definition object. The proxy command definition object will have an object type of *CMD.
Once created, the proxy command can be changed by the Change Proxy Command (CHGPRXCMD) command. Other command-specific interfaces that reference a proxy command will actually operate on the command specified for the Target command (TGTCMD) parameter. The target command can be a regular command or another proxy command. Up to 5 proxy commands can be chained together. The last target command in the chain must be a regular command. Using the Change Command (CHGCMD) command or the Change Command Default (CHGCMDDFT) command against the proxy command will change the target command. Prompting or running a proxy command will cause the target command to be prompted or run.
Other object operations not specific to commands will operate on the proxy command and will not affect the target command. For example, moving a proxy command to another library, saving a proxy command, or deleting a proxy command will only affect the proxy *CMD object; the target *CMD object is not affected.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
CMD | Command | Qualified object name | Required, Positional 1 |
Qualifier 1: Command | Name | ||
Qualifier 2: Library | Name, *CURLIB | ||
TGTCMD | Target command | Qualified object name | Required, Positional 2 |
Qualifier 1: Target command | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB, *SYSTEM, *NLVLIBL | ||
TEXT | Text 'description' | Character value, *BLANK, *TGTCMD | Optional |
AUT | Authority | Name, *LIBCRTAUT, *USE, *ALL, *CHANGE, *EXCLUDE | Optional |
REPLACE | Replace command | *YES, *NO | Optional |
Top |
Specifies the proxy command to be created.
This is a required parameter.
Qualifier 1: Command
Qualifier 2: Library
Top |
Specifies the target command used to process the command. This command is not needed until the command is used in prompting, compiling, or running the proxy command. The parameters specified for the proxy command are passed to the target command for validation and interpretation. The target command can be a regular command or another proxy command. Up to 5 proxy commands can be chained together. The last target command in the chain must be a regular command.
This is a required parameter.
Qualifier 1: Target command
Qualifier 2: Library
Top |
Specifies the text that briefly describes the object.
Top |
Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
Top |
Specifies whether or not an existing commmand object with the same name and library as the command being created should be replaced.
If you specify *YES and a command object already exists with the same name and in the same library, the existing command is renamed and moved to library QRPLOBJ, and will be deleted the next time an IPL of the operating system occurs.
Top |
CRTPRXCMD CMD(QGPL/WJ) TGTCMD(WRKJOB) TEXT('WRKJOB Shortcut')
The proxy command named WJ is created into library QGPL. When the WJ command is run or prompted, the target command WRKJOB in the library list will be used to process the WJ command parameters.
Top |
Top |