|
On 03/02/2005, at 2:47 AM, <Rick.Chevalier@xxxxxxxxxxxxxxx> wrote:
As a longtime no /copy bigot I'm still coming to terms with using /copy (or /include) for prototypes. I have used the method Joe describes (at least I think it's the same) and I don't see the difference between that and a separate copybook other than using /define statements. I actually kind of like that because then I know exactly what is being copied.
Bad idea for a number of reasons.
/copy rpgleinc,fbnmath /copy rpgleinc,fbnstring /copy rpgleinc,fbndate
is much cleaner than forcing the consumer to remember to code /define prototypes /copy rpgleinc,fbnmath /copy rpgleinc,fbnstring /copy rpgleinc,fbndate /undefine prototypes
/IF prototypename d Proc pr d parm1 1a d parm2 10i 0 /ENDIF
/define getdayname /define getmonthname /define getdayofweek /define getdatedifference /copy rpgleinc,fbndate
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 \ / X ASCII Ribbon campaign against HTML E-Mail / \ --------------------------------------------------------------------
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.