10 May 2013 15:51
Re: AS400 C++ calling COBOL - MCH0802
The Opening Post provided a complete CBLLE source for the "CALLEE"
[and two sources for the CALLER; one is CBLLE] for which the compiled
*PGM object as created with the Create Bound COBOL Program (CRTBNDCBL)
command effects min=0\max=3 for the "Number of parameters". A snippet
of that complete CBLLE source, for which apparently the "USING" effects
the explicitly defined /hard/ number of parameters rather than a more
/theoretical/ or /soft/ limit for the maximum, is included here:
------- CALLEE.CBL --------
...
LINKAGE SECTION.
01 P1 PIC X(5).
01 P2 PIC X(5).
01 P3 PIC X(5).
PROCEDURE DIVISION USING P1 P2 P3.
...
Regards, Chuck
On 09 May 2013 23:32, Jevgeni Astanovski wrote:
> are you sure that minimum number of parameters and maximum number of
> parameters returned by QCLRPGMI are somehow "related to reality"?
>
> I just had a look at ILE/RPG programs (attribute RPGLE). They all
> (OK, all that I looked at) have the following:
>
> Program statistics:
> Number of parameters . . . . . . . . . . . . . : 0 255
>
> And this is for a program, that I know, needs exactly 5 parameters.
(Continue reading)
Thanks,
Sergey
RSS Feed