I would like to run a report on AS/400 to indentify which DB2 tables to reorg.

95 pts.
Tags:
DB2
iSeries
OS/400
Hi,

 New to iSeries. I need to identify which tables need to be reorged. From manual I see that if I do a DSPFD FILE(xxx/*ALL) TYPE(MBRLIST). I get a report where the Total deleted records are more than 10% of the total records I should reorg. Is there a report similar from DB2 side a utility perhaps?

 

 



Software/Hardware used:
OS/400 6.1
ASKED: March 23, 2012  9:54 AM
UPDATED: March 23, 2012  9:32 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CharlieBrowne
    You can download commands from the web to assist you with this. If you google RGZPGM FREE you will find sites that have homwgrown utilities that will let you setup an easy way to do RGZPFM based on % of deleted records or other criteria
    39,815 pointsBadges:
    report
  • WendyB
    Thank you so much Charlie Brown
    95 pointsBadges:
    report
  • CharlieBrowne
    Your very welcome. That is why this site exists
    39,815 pointsBadges:
    report
  • TomLiotta
    Since DB2 is integrated with the operating system, and since the OS is 'object-based', many utilities seen on other DB2 platforms do not exist in the same form in the AS/400 product line. There is no actual DB2 function that returns the information; you use an object method (e.g., DSPFD) to extract/retrieve the information from the file description object. There are some alternatives. These are generally in the form of APIs for use by HLLs and don't require SQL. You might call the List Database File Members (QUSLMBR) API to generate a list of file members in a user space. If the number of members is too large, you might instead access a member at a time with the Retrieve Member Description (QUSRMBRD) API. Regardless of how you do it, if your database is of any significant size and complexity, it's almost a certainty that you do not want to rely on something like "deleted records are more than 10%" as a threshold for RGZPFM. (If you're a past DBA, you already know that; but this thread can be read by others who are just beginning.) You'll want to be familiar with the Database performance and query optimization topic in the Info Center for i 6.1 to see the possible tools you might use. Do you have some specific objectives in mind? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following