|
Hi all,
Thank you for your time and expertise!
To recap:
1) Yes, using the right definitions of variables in terms of data type and
length works fine, but I don't want to act that way because I would lose
the database fields' definition inheritance in case of changes. I'd rather
be able to recompile the program as-is instead of changing definitions in
tons of code whenever a field definition changes;
2) Also, I need to have DS having subfields with the same name as database
fields because I will use them as key DS;
3) Yes, the presence of a DS with subfields as described before produces a
double definition of the same field which inherits the length from the
database but not the data type. To me, this is an error, and it's not what
the RPG reference V7R3 and V7R4 state;
4) I can't use the qualified DS for the very same reason as before;
5) The only valid solution I found to preserve all of the previous
constraints is to define a template file, only used at compilation time, to
get prefixed fields' names to refer to when needed.
In case any of you will encounter a new and different solution feel free to
go on with the discussion, I will appreciate any news.
Thank you very much and happy new year!
Lucia
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.