Good stuff! Thanks!

-----Original Message-----
From: Brian Johnson []
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
seeing many dozens, if not hundreds of system related tables (in other
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:

Brian Johnson
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,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at

This thread ...


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