• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5624
  • Last Modified:

Command in AS400 to display the total size of the library

Command to find the total size of the library in AS400. I am using the command DSPLIB OUTPUT(*PRINT),but this is going to print almost 600 pages to display the total size of the library.
0
kirankumarvoona
Asked:
kirankumarvoona
  • 4
  • 2
  • 2
1 Solution
 
theo kouwenhovenCommented:
Hi kirankumarvoona,

The total size is mentioned at the end of the printout when you use:

                    DSPLIB LIB(MyLibrary) OUTPUT(*PRINT)

Regards,
Murph
0
 
kirankumarvoonaAuthor Commented:
Is it possible to display the total size of the Library without using Print Command.
0
 
WaldenLCommented:
dspobjd <lib>/*all objtype(*all) output(*outfile) outfile(qtemp/x)
strsql
select sum(odobsz) from qtemp/x

this is from memory, so parms may not be exact, but hit f4 and you'll get there.

Remember though, if you don't have rights to an object you won't see it in the display, so do this as someone w/correct authority.

-Walden
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
kirankumarvoonaAuthor Commented:
That was very helpful, thanks a million, Is there any good website you can suggest for getting familiarity with AS400 commands.
0
 
WaldenLCommented:
Infocenter on the ibm site is the definitive reference. But I'd check out midrange.com too. Great mailing lists to ask questions like these.
0
 
kirankumarvoonaAuthor Commented:
Can you please confirm with me whether the size in AS400 is calculated in Kb?
0
 
theo kouwenhovenCommented:
in bytes, if you looked to the spoolfile, it will tell you :p
0
 
kirankumarvoonaAuthor Commented:
Thank you very much for your help.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now