PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Look at QCMDEXC in another way

View previous topic View next topic Go down

Look at QCMDEXC in another way

Post  maran on Wed May 29, 2013 1:32 pm

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)
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum