How to get file size?

If I know the name of a file on an as400 how do I tell the size of this file in bytes/kilobytes/etc?
jdouthitAsked:
Who is Participating?
 
Dave FordSoftware Developer / Database AdministratorCommented:

Probably the easiest way is to use the DspFd command from the command-line.

e.g.

dspfd YourLib/YourTable

At the bottom of the output, you'll see the size of the file in bytes.

Open in new window

0
 
Dave FordSoftware Developer / Database AdministratorCommented:
Alternately, if you prefer to use the GUI (System i Navigator), you can expand the Database tab for the system you interested in. Then navigate to the target schema and table. Right-click on the table and select "Description". On the resulting screen, you'll see the file-size.

HTH,
DaveSlash
0
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.

All Courses

From novice to tech pro — start learning today.