Solved

Command in AS400 to display the total size of the library

Posted on 2008-06-19
8
4,974 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
  • 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now