|
In older versions of RPGIV (like the version I use) you can't take the address of a CONST input parameter. :( -Bob Cozzi www.RPGxTools.com RPG xTools - Enjoy programming again. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx Sent: Monday, January 23, 2006 8:39 AM To: RPG programming on the AS400 / iSeries Subject: RE: Specifying a data structure on a prototype Is the basing pointer working for you? I tried taking D PRGJRNRCV PI *ENTRY PLIST D JrnRcv const like(Input) D DetachDays 5i 0 const D Input ds qualified D Journal 10a D Library 10a /UNDEFINE DSpec /free *inlr=*on; Input=JrnRcv; to D PRGJRNRCV PI *ENTRY PLIST D JrnRcv const like(Input) D DetachDays 5i 0 const D pInput s * inz(%addr(JrnRcv)) D Input ds qualified based(pInput) D Journal 10a D Library 10a But I get RNF0341: Parameter JRNRCV for %ADDR is not valid; %ADDR is ignored. I'm thinking the difference in mine is because I am using the const on JrnRcv. That seems to be what the error is flagging. Rob Berendt
This mailing list archive is Copyright 1997-2026 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.