|
-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Charles Wilt
Envoyé : mercredi 23 septembre 2009 20:35
The problem is the MyDS is a very poor name!
I often have DS's in a copy member without wrapping them in
/if defines. But I give my DSs a usable name and following
the idea of DRY (Don't Repeat Yourself) a DS of a given name
is only defined in one place.
If for some reason, as DS is needed in two places (a good
example, is the errorDS I use for IBM API's) then I pull it
out of it's original place an put it into it's own copy book,
which is then /included into the copy books that need them.
Like Duane, I use /if defined at the top of a copy book so
that for any given copy book, it is only ever included once.
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.