|
from his posting, seems like he is trying to prototype an external program. I think in this case, the const keyword will not take effect if the parm attribute in caller match the called pgm. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Bob Cozzi Sent: Tuesday, January 18, 2005 9:37 AM To: 'RPG programming on the AS400 / iSeries' Subject: RE: Error code on extpgm? Parameters with CONST will not be allowed to be modified in the procedure. The compiler will issue a syntax error. If you ONLY remove CONST from the prototype and do that after you compiled the procedure itself, you are tricking the compiler but the procedure will not be changed. You need to modify the PR and the PI statements, removing CONST from the parms you want to modify within the procedure.
As an Amazon Associate we earn from qualifying purchases.
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.