MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » April 2013

Re: how to build a CL command with OPTIONAL parms - help!



fixed

I like this idea of looking at program statistics - that's a thing I usually skip over in DSPPGM.

An alternative - IF you compiled the program with *LIST debug information - is to STRDBG, then show the listing - this can reveal a difference between source and compiled object.

Just something I do sometimes! Like just a few minutes ago, but I'm getting ready for sleep!

BTW, I always use *ALL for debug info in ILE compiles in Development. Time for sleep - I forget the parameter name!

HTH
Vern

On 4/18/2013 6:21 PM, CRPence wrote:
On 18 Apr 2013 14:47, Stone, Joel wrote:
<<SNIP>>
Note: I now have 4 parms on both the command and the CPP, but still
get CPD0162 error "Parameters do not match those in program SET_ENVR"
<<SNIP>>
That is a run-time error for the invocation of the command, and that
diagnostic message is followed by the generic escape CPF0001 for command
failures.

So although the source has 4 parameters declared, two possible
origins for which that error remains:
Was the CL program re-compiled from that updated source, and if so,
is that recompiled program the first in *LIBL per "Parameters do not
match those in program SET_ENVR in *LIBL."?

When that error is received, immediately issue the following request
to review the current definition of the program, for its "Number of
parameters" under the heading "Program statistics":
DSPPGM *LIBL/SET_ENVR







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