× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I think you answered your own question:
>> As a longtime no /copy bigot

Opening up the source after "code freeze" for developers to use is not a
good idea in my opinion. But if you're a one or two-person shop and you
don't worry about other people working with your source, then go for it.
If I did that with RPG xTools, I would have had to have shipped everyone the
entire source library rather than just the prototypes.
To me, though, it is confusing and gimmicky to use this "technique". You can
program-describe your files which is exactly the same thing in my opinion,
to putting all the prototypes in the same source member as the
implementation. 
I'm guessing you're using SEU to edit your code... this all-in-one-source
mentality runs rapid in SEU users.

-Bob


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Rick.Chevalier@xxxxxxxxxxxxxxx
Sent: Wednesday, February 02, 2005 9:47 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Prototyped Procedures


Normally I try to stay out of these discussions but I'm curious about
something.

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.

For instance:

Module code

/IF prototypename
d Proc       pr
d  parm1                 1a
d  parm2                 10i 0
/ENDIF

d Proc       pi
        .
        .
        .

In calling program
/DEFINE prototypename
/COPY sourcefile/modulesource
/UNDEFINE


With the prototype in a separate member you don't have the define (or maybe
you do if there are many prototypes in a single copybook) so you are left
with this:

/COPY sourcefile/modulesource

I just don't see issue with using /DEFINE

Rick


Privileged and Confidential.  This e-mail, and any attachments there to, is
intended only for use by the addressee(s) named herein and may contain
legally privileged or confidential information.  If you have received this
e-mail in error, please notify me immediately by a return e-mail and delete
this e-mail.  You are hereby notified that any dissemination, distribution
or copying of this e-mail and/or any attachments thereto, is strictly
prohibited.

-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.