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



This might work:

Select COLUMN_NAME from qsys2/syscolumns where TABLE_SCHEMA = 'LIBRARYNAME'

Sorry can't test it till tomorrow, but something like this will work

Neill

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave Snyder
Sent: 16 June 2009 21:13
To: midrange-l@xxxxxxxxxxxx
Subject: Listing fields in SQL

i am relatively new to sql on the i. Is there a way to get a list of
fields in all files in a library using SQL? I am looking for the "full
sql
name", not the field name in the DDS definition of the file.

Thanks for any help in the right direction.
Dave
NOTICE - This e-mail message is intended only for use by the addressee(s)
named herein and may contain legally privileged and/or confidential
information. If you are not the intended recipient of this message, you
are hereby notified that any dissemination, distribution or copying of
this message is strictly prohibited. If you have received this message in
error, please notify the sender by e-mail or telephone and delete the
original and all copies of this message immediately.
[1]www.ephratanationalbank.com

References

Visible links
1. http://www.ephratanationalbank.com/

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.