Wednesday, July 9, 2008

Qualified Parameters in Custom Commands:

If you have created a custom command, and you want the prompt to appear similar to the below mentioned format. That is, you need the file and the library as input. Instead of defining two different parameters we can create a qualified parameter which will take care of multiple inputs. The qualified parameter automatically stores the two values in a single variable and it can be easily used for further manipulation.
FILE _____________
*LIBL________


The command source is

CMD PROMPT('PRINT DDS SOURCE')

PARM KWD(FILE) TYPE(QUAL1) PROMPT('DDS Source +
File with Msg.s')

QUAL1: QUAL TYPE(*NAME) LEN(10)
QUAL TYPE(*CHAR) LEN(10) DFT(*LIBL) +
SPCVAL((*LIBL *LIBL)) PROMPT('Library')

No comments: