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.
kirankumarvoonaAsked:
Who is Participating?
 
WaldenLConnect With a Mentor Commented:
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
 
MurpheyApplication ConsultantCommented:
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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
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
 
MurpheyApplication ConsultantCommented:
in bytes, if you looked to the spoolfile, it will tell you :p
0
 
kirankumarvoonaAuthor Commented:
Thank you very much for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.