MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » April 2014

Re: CLP pgm with 2 paramters intermittently gettinggarbage whencalled from AJS



fixed

Paul:

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.

HTH,

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)
PROMPT('ICAPI CMD')

Paul







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact