Good stuff! Thanks!
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
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:
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 http://archive.midrange.com/midrange-l