|
Do you still do that S/34 RPG stuff where every field name has a 2 character prefix which indicate which table it came from?
Because if you don't and ITEMNUMBER is called the same name in every table it appears it's extremely simple to get a cross reference of every table it's used in by simply doing the following
select SYSTEM_COLUMN_NAME, SYSTEM_TABLE_SCHEMA, SYSTEM_TABLE_NAME,
DATA_TYPE, LENGTH, NUMERIC_SCALE, COLUMN_HEADING, COLUMN_TEXT
from qsys2.syscolumns
where system_column_name = 'ITEMNUMBER'
;
Also by avoiding that prefix method it's extremely simple to scan/replace all source when you change a column attribute.
I find field reference files rather obsolete.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
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.