How to get file size?

Posted on 2011-05-02
Last Modified: 2012-05-11
If I know the name of a file on an as400 how do I tell the size of this file in bytes/kilobytes/etc?
Question by:jdouthit
    LVL 18

    Accepted Solution


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


    dspfd YourLib/YourTable
    At the bottom of the output, you'll see the size of the file in bytes.

    Open in new window

    LVL 18

    Expert Comment

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    779 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

    18 Experts available now in Live!

    Get 1:1 Help Now