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



Hi Rob

I never worked on S34.
Also I never did come up with a good solution for field naming. The biggest restriction being the 6 byte field size.
Program described field names were a proper dogs breakfast.

To get a comprehensive Field Where Used we used Pathfinder , dont know if it still exists.
Prior to Pathfinder I had a Field cross reference utility that used File/Field End position as the sort criteria.
Dug that info from Compile Cross reference listings,  wrote a utility to compile programs  into Qtemp then parsed the listing.

Frank


On 29/06/2022 9:49 pm, Rob Berendt wrote:
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 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.