Reputation: 15841
I have a my database navigator that contains a lot of tables with descriptions. I need to search within descriptions in order to find the table I need, but in the database navigator from ibm this feature is not available. Because of this I want to export all data to a excel sheet. But how?
Upvotes: 0
Views: 980
Reputation: 1
You can also do it the old fashioned way, if you have access to green screen and the command line.
Use WRKOBJPDM LIB(youiSerieaLibraryName) OBJTYPE(*FILE)
then use F17 Subset (Shift and F5 ) and enter your search criteria for the file description next to TEXT
Upvotes: 0
Reputation: 2684
This SQL statement will give you the schema (library), table name, and description for every table you have access to.
SELECT TABLE_SCHEMA, NAME, TABLE_TEXT
FROM QSYS2.SYSTABLES
You can get it into Excel in a few ways. I am not a big fan of iSeries Navigator, so I tend to use Microsoft Query to get my data into Excel.
Here's how I do it:
Yes, it's a klunky process, but it works. The only downside is that Microsoft Query runs the query to show it to you, the Excel runs it again to pull the data. That might not always be a good idea if it's an expensive query to run. I wouldn't worry about it in this case.
Upvotes: 1