This compiled fine for me...
But, the whole point of creating a *CMD was to pass the correct lengths
for each parameter.
In the original post of this thread, you showed (in the CL dump excerpt)
that the variable &CMD was declared as *CHAR with length 41.
So, you should change "LEN(34) to LEN(41) in your command definition below.
Mark S. Waterbury
> On 4/10/2014 3:54 PM, Steinmetz, Paul wrote:
CMD PROMPT('Start, Stop, Status to ICAPI')
PARM KWD(IP) TYPE(*CHAR) LEN(15) MIN(1) +
PROMPT('ICAPI Server IP')
PARM KWD(CMD) TYPE(*CHAR) LEN(34) RSTD(*NO) +
DFT('sudo /sbin/service jboss-as stat') + (32 chars max)