|
Thanks Simon, good catch. The program works fine now. This is what it looks like now. .....DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++ D RtvWeekOfYearA PR 6p 0 D charDateIn 10A const .....PName+++++++++++..T...................Keywords+++ P RtvWeekOfYearA B Export D RtvWeekOfYearA PI 6p 0 D charDateIn 10A const ... .....CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result++++++++ c *ISO TEST(DE) charDateIn ... Thanks again, Reggie > Message: 7 > Date: Thu, 12 Dec 02 15:05:02 +1100 > From: "Simon Coulter" <shc@flybynight.com.au> > To: rpg400-l@midrange.com > Subject: Re: CLLE and date type parameter in RPGLE subprocedure > Reply-To: rpg400-l@midrange.com > > > Hello Reggie, > > The problem is the VALUE keyword on the PI. CL cannot pass > by value so > RPG misinterprets the contents of storage and gets garbage. Using > VALUE in general is a dumb idea because it restricts the programming > languages you can use to call the function. Using CONST by reference > is a better idea. > > Regards, > Simon Coulter. > -------------------------------------------------------------------- > FlyByNight Software AS/400 Technical Specialists > > http://www.flybynight.com.au/ > Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ > Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / > X > ASCII Ribbon campaign against HTML E-Mail / \ > -------------------------------------------------------------------- > > > --__--__--
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.