Good stuff! Thanks!

-----Original Message-----
From: Brian Johnson [mailto:brian.johnson.mn@xxxxxxxxx]
Sent: Tuesday, October 09, 2012 2:38 PM
To: Midrange Systems Technical Discussion
Subject: Re: Find files in any library

On Tue, Oct 9, 2012 at 2:32 PM, Matt Olson <Matt.Olson@xxxxxxxx> wrote:

V7R1. I want to do it the SQL way as I can do a lot more things with
it than I can with various AS400 specific commands. Such as creating
various reports in a reporting tool like SQL Reporting Services.

I tried looking at SYSIBM library but I only see 7 objects in that
library (SYSDUMMY1, SYSPRIVILEGES, SYSTABLETYPES,
SYSCHARSETS,SQLTYPEINFO,MQSERVICE_TABLE,MQPOLICY_TABLE). I'm use to
seeing many dozens, if not hundreds of system related tables (in other
database
platforms) that will give you the nuts and bolts of every facet of the
database (file size, # records, doing column name searches, indexes,
all security details, etc). This allows you to solve a lot of
questions with SQL statements such as "show me tables without a
primary key defined", "show me all tables that has column name xyz in
any library", and my main question of "tell me any library that has
the file named xyz in any library" etc.


This should help:

http://publib.boulder.ibm.com/infocenter/iadthelp/v7r1/topic/com.ibm.etools.iseries.langref2.doc/rbafzmstcatalog.htm


--
Brian Johnson
brian.johnson.mn@xxxxxxxxx
--
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.





Return to Archive home page | Return to MIDRANGE.COM home page