ibm midrange - How to handle TYPE(*PNAME) in command source definition -
how make type(*pname) parameter be:
- required
- have default value
- have initial length of 10
how handle increases in length of prompted field,
- the length of prompted field of type *pname can increased "&".
- rpgle needs command processing program (cpp)
example, command source definition:
parm kwd(pcml) type(*pname) len(10) min(0) dft(*mydft) spcval((*mydft)) prompt('pcml input path')
- use
min
option make parameter required. - use
dft
,spcval
options specify default , special values. - use
len
option specify maximum length. - use
inlpmtlen
option specify initial length. - the command processing program must defined accept maximum length.
cmd
parm kwd(pcml) type(*pname) len(512) dft(*mydft) spcval((*mydft)) min(1) inlpmtlen(10) prompt('pcml input path')
rpg
c *entry plist c parm pcml 512
for more information see parameter definition documentation.
Comments
Post a Comment