CL Command Reference - CHGPRXCMD
CL Command List > CHGPRXCMD Reference
Description:
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:
. You must have object management (*OBJMGT) authority for the command that is being changed.
. The CHGPRXCMD command can be used to change only the attributes that were specified on the Create Proxy Command (CRTPRXCMD) command.
Examples:
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.