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



There is a similar PDF here :
http://www-03.ibm.com/systems/i/software/db2/db2code.html

Look for "Poster and map objects (ZIP, 230KB)"

unfortunately since V7.1 has only been out for more than a year this has not been updated.
It appears to be current for V6.1

Bryan


Matt Olson said the following on Tue, 10/9/2012 3:37 PM:
Thanks scott, that was what I was looking for. QSYS2 seems to have quite a few objects I will want to examine.

Anyone know if a system view map exists like they have for Microsoft SQL: http://www.microsoft.com/en-us/download/details.aspx?id=722

Thanks

-----Original Message-----
From: Scott Klement [mailto:midrange-l@xxxxxxxxxxxxxxxx]
Sent: Tuesday, October 09, 2012 2:33 PM
To: Midrange Systems Technical Discussion
Subject: Re: Find files in any library

Hi Matt,

Do you just want to do something like this?

select * from qsys2.systables where table_name='Whatever'




On 10/9/2012 2:20 PM, Matt Olson wrote:
Anyone have any idea how to find files in any library using SQL?

I'm used to having a wealth of information available in system views in various other database platforms but can't seem to find what works for the AS400.

I tried "select * from syscat.tables where tabname=tabletofind" but apparently that doesn't exist in the AS400's flavor of DB2. Additionally SYSIBM.SYSTABLE doesn't seem to exist either.

Thanks!

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


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.