Solved

Command in AS400 to display the total size of the library

Posted on 2008-06-19
8
5,136 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 500 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Query Last Used Date on Multiple Servers 8 51
Access to SYSIBM tables 7 115
Create AS400 Logical File 5 103
Storing REST data JSON to an iSeries (as400) IFS file 12 189
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

726 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