IBM Support

Getting a List of All the Files and File Sizes

Troubleshooting


Problem

Is there a way to get a list of all files in various user libraries and the sizes of each file?

Resolving The Problem

Is there a way to get a list of all files in various user libraries and the sizes of each file?

To get a list of all the files in various user libraries and the sizes of each file, do one of the following:

oTo produce a spooled file with a list of all the objects in the specified library and the file sizes, run the following commands:

DSPLIB OUTPUT(*PRINT)

The list includes all objects rather than only files.
oUse the Display Object Description (DSPOBJD) command. This command can limit the output by object type of *FILE. The output can be directed to a spooled file or to an output file. If an output file is used, queries can be created that would pull out only the fields that the user is interested in for the report. In this case, only the object name and size are relevant.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Historical Number

23343247

Document Information

More support for:
IBM i

Software version:
7.1.0

Operating system(s):
IBM i

Document number:
641111

Modified date:
18 December 2019

UID

nas8N1017366

Manage My Notification Subscriptions