× 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 have a copy book for my Sockets API's. I include the /copy cpyapids in
that copy book so that I don't have to put it in every module, nor do I have
to put it in the main module. I also have a copy book for ifs API's. Same
thing. If I have a routine that requires both sockets and ifs API's, I can
use /copy with the main module:
/copy cpypsock 
/copy cpypifs
each has a /copy cpyapids inside, but the compiler doesn't choke because the
apids has been declared twice.
I also use this method when writing import and exports. I have a copy book
of global variables declared twice. Once with "export", once with "import".
I put a declare in the top of the module, and I know it's getting the import
or export depending on whether it's a main module, or a subservient module.
John

-----Original Message-----
From: Richard B Baird [mailto:rbaird@xxxxxxxxxxxxxxxxxxxxx]
Sent: Friday, June 13, 2003 5:48 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: /if, /define, binder language



John,

one more thing... can you give me a good reason for having the same code
defined in more than one copybook?  the whole idea of copybooks is so you
don't duplicate code.

are you 'nesting' your copybooks (i.e. use /copys in a copybook)?

Thanks,

Rick


_______________________________________________
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.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.489 / Virus Database: 288 - Release Date: 6/10/03
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.489 / Virus Database: 288 - Release Date: 6/10/03
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.