Library size in MB or KB?

750 pts.
Tags:
AS 400
When I generate a library listing and it gives me a total size at the end of the report, is that size in KB or MB? I want to convert it to GB or TB. Also, what is the best way to generate a file that contains all files in a library that is journaled.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

the library sizes are displayed in bytes. 

To convert it to MB take the value and divide by 1024. 
To convert that to GB convert the MB value by 1024.
To convert that to TB convert the GB value by 1024.

Discuss This Question: 2  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.
  • TheRealRaven
    For all of the libraries that I currently have available, the total size is in bytes, not MB nor KB.

    If you have an example that shows other wise, please copy/paste the totals lines.

    And there is no "best way" to generate a list. There's almost never a "best way" to do anything with manipulation of computerized data. Different ways can be better for different users and different purposes. The simplest and quickest way is to run a DSPOBJD OBJTYPE(*FILE)  OUTPUT(*OUTFILE) command over the library. Then query the outfile selecting the needed records.

    In recent versions of the OS, some database catalog views have been made available that present object information in ways that might be easily useful to you. Availability depends on what you're working with.
    35,710 pointsBadges:
    report
  • Subhendu Sen
    To determine Library size, you can use DSPLIBSIZE, which allows users to display and retrieve the size of a given library. Please check here for more info: https://search400.techtarget.com/tip/Display-a-library-size
    140,480 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.

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

Following

Share this item with your network: