How to make a TYPE(*PNAME) parameter be:
How to handle increases in the length of the prompted field,
Example, command source definition:
PARM KWD(PCML) TYPE(*PNAME) LEN(10) MIN(0) DFT(*MYDFT) SPCVAL((*MYDFT)) PROMPT('PCML Input path')
MIN
option to make the parameter required.DFT
and SPCVAL
options to specify default and special values.LEN
option to specify the maximum length.INLPMTLEN
option to specify the initial 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 the Parameter Definition documentation.