How do CL commands build their exact parameter lists?
问题 I have a CMD command object that drives an RPGLE program. Because the command may be called with several different parameters, some of which are mutually exclusive, I parse the parameter passed by using a data structure in the RPGLE so I can handle the different scenarios that pass the parameters in various positions. For example, the CMD file has: CMD PROMPT('Reprint Invoices and Credits') PARM KWD(ORDERNUM) TYPE(ORDER) + PROMPT('For order number:') PARM KWD(INVDATE) TYPE(*DATE) PASSATR(*YES