Iseries Operations

As400 library size did not change after files were deleted in the library?
nmvfd18Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gary PattersonVP Technology / Senior Consultant Commented:
How did you check the lib size?
0
nmvfd18Author Commented:
Using dsplib command.
0
Gary PattersonVP Technology / Senior Consultant Commented:
please post a copy of the output
0
AndrewCommented:
I expect you have used DSPLIB QSYS and viewed the "size" field for the library objects.
If this is the case the size field does not include the objects contained within the library, only the library object itself.
To determine the actual size of the library you would need to list all of the objects in the library and then total them using a query/sql statement, or by using the RTVDSKINF/PRTDSKINF commands.
2

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gary PattersonVP Technology / Senior Consultant Commented:
DSPOBJD command, for example, just shows the size of the library object itself - not the sum of the size of all of the objects in the library.

DSPLIB LIB(mylib) OUTPUT(*PRINT) will show a summary line at the bottom containing the sum of the sizes of all the objects in the lib.  Quick and easy way to get the size of a single lib.

You can also use the QLIRLIBD API to retrive the size of a library, including contents: http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_71/apis/qlirlibd.htm

You can use the DSPOBJD command and then query the output file. This is trickier than it sounds if you have very large objects in a lib. In the old days, we didn't have objects larger than 10GB, so ODOBSZ being 10 digits long was enough. Now the OS supports larger objects, so to calculate object size, multiply field ODBPUN (bytes per unit) times field ODSIZU (size of unit).

DSPOBJD OBJ(mylib/*ALL) OBJTYPE(*ALL) OUTPUT(*OUTFILE) OUTFILE(QTEMP/OBJECTS)

And if you need to get size information for all the libraries in the system, use the DISKTASKS tools:

http://www-01.ibm.com/support/docview.wss?uid=nas8N1019469

- Gary
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.

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.