|
In other words, Your prototype should be in a copy member that is /COPY'ed into both the calling program and the called program. Of course you need to actually use the /COPY'ed prototype to make the call. But that way the compiler can make sure that the prototype and the PI agree and thus all programs using the prototype will make the call correctly. If your prototype's not in a /COPY member, then you're missing one of the biggest benefits to replacing *ENTRY PLIST with a prototype and procedure interface. Charles Wilt -- iSeries Systems Administrator / Developer Mitsubishi Electric Automotive America ph: 513-573-4343 fax: 513-398-1121 -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Joe Pluta Sent: Tuesday, November 01, 2005 3:50 PM To: 'RPG programming on the AS400 / iSeries' Subject: RE: Weird Happening In the calling program the parms for PreferredCity and InterlineCode are the same, or are at least in the same memory location (the latter could happen through basing pointers or overlaid fields in a data structure). Check the call to the procedure. Joe > From: Bruce Collins > > Below I have exchanged my *entry to this. When I move a value into > 'ALBERT' > into PreferredCIty the field InterlineCode is populated with 'Albe' even > thought I have not moved any thing into it. When some does get moved into > it > it overlays the first 4 bytes of PreferredCIty with it value. i.e. > InterlineCode = 'BEAV'. PreferredCiity now show 'BEAVRT' .
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.