Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Proxy Command (CHGPRXCMD) command changes some of the attributes of a proxy command. Control Lanuage (CL) programs that use the proxy command being changed do not have to be created again. The CHGPRXCMD command does not change the target command definition object.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
CMD | Command | Qualified object name | Required, Key, Positional 1 |
Qualifier 1: Command | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TGTCMD | Target command | Single values: *SAME Other values: Qualified object name |
Optional, Positional 2 |
Qualifier 1: Target command | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB, *SYSTEM, *NLVLIBL | ||
TEXT | Text 'description' | Character value, *SAME, *BLANK, *TGTCMD | Optional |
Top |
Specifies the proxy command to be changed.
This is a required parameter.
Qualifier 1: Command
Qualifier 2: Library
Top |
Specifies the target command for this proxy command. All parameters specified for the proxy command will be validated and processed using the specified target command.
Single values
Qualifier 1: Target command
Qualifier 2: Library
Top |
Specifies the text that briefly describes the object.
Top |
CHGPRXCMD CMD(QGPL/WRKJOB) TGTCMD(QSYS/DSPJOB) TEXT('Alias WRKJOB to DSPJOB')
The proxy command named WRKJOB in library QGPL is changed to use DSPJOB in QSYS as the target command. When the QGPL/WRKJOB command is run or prompted, the target command DSPJOB in the QSYS library will be used to process the WRKJOB command parameters.
Top |
*ESCAPE Messages
Top |