Scott,

 So it would look like this?

CLP:
 CALLPRC PRC(MYRPGPROC)
         PARM((&PARM1))
         RTNVAL(&RETURN)

RPG:
D MYRPGPROC       PR             1A   ExtProc( *CL:'MYPGPROC' )
D  Parm1                         1A
D MYRPGPROC       PI             1A
D  Parm1                         1A


 -mark

M. Lazarus wrote:
 >
 > How do you define *CL on the proto for a CLP calling an RPG program?
 >

CL always uses the CL calling convention (for some strange reason) so
you don't have to specify *CL on the CL side of the call.  Only on the
RPG side of the call.  It's RPG that needs to be told to use the *CL
calling convention!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.