Look at QCMDEXC in another way
Page 1 of 1
Look at QCMDEXC in another way
We can use Command processing API QCMDEXC as the CPP so that we can create a short version of command.
Here you we go….
Let’s create a short command DM which is short version of DSPMSG
In the command source type the following:
CMD
PARM KWD(CMD) TYPE(*CHAR) LEN(6) CONSTANT('DSPMSG')
PARM KWD(LEN) TYPE(*DEC) LEN(15 5) CONSTANT(6)
When you create a command (opt 14), do the compiler override ( Press F4 ) and mention CPP name as QCMDEXC
CRTCMD CMD(DM) PGM(QCMDEXC)
Here you we go….
Let’s create a short command DM which is short version of DSPMSG
In the command source type the following:
CMD
PARM KWD(CMD) TYPE(*CHAR) LEN(6) CONSTANT('DSPMSG')
PARM KWD(LEN) TYPE(*DEC) LEN(15 5) CONSTANT(6)
When you create a command (opt 14), do the compiler override ( Press F4 ) and mention CPP name as QCMDEXC
CRTCMD CMD(DM) PGM(QCMDEXC)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|