?
Solved

Command in AS400 to display the total size of the library

Posted on 2008-06-19
8
Medium Priority
?
5,363 Views
Last Modified: 2012-05-05
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
Comment
Question by:kirankumarvoona
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 21821678
Hi kirankumarvoona,

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

                    DSPLIB LIB(MyLibrary) OUTPUT(*PRINT)

Regards,
Murph
0
 

Author Comment

by:kirankumarvoona
ID: 21821707
Is it possible to display the total size of the Library without using Print Command.
0
 
LVL 3

Accepted Solution

by:
WaldenL earned 2000 total points
ID: 21821791
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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

Author Closing Comment

by:kirankumarvoona
ID: 31468709
That was very helpful, thanks a million, Is there any good website you can suggest for getting familiarity with AS400 commands.
0
 
LVL 3

Expert Comment

by:WaldenL
ID: 21821889
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
 

Author Comment

by:kirankumarvoona
ID: 21823003
Can you please confirm with me whether the size in AS400 is calculated in Kb?
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 21825250
in bytes, if you looked to the spoolfile, it will tell you :p
0
 

Author Comment

by:kirankumarvoona
ID: 21829124
Thank you very much for your help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question