Hallo SE,
in einer anderen Newsgroup habe ich folgenden Artikel gesehen:
There are at least two ways to get that. The first one is to use DSPLNK and specify DETAIL(*EXTENDED)and output of *PRINT. You could then write a little program to copy your spool file to a DB file and then read the spool file to retrieve your file sizes. Another way is to use the QHFRDDR
API. APIs run faster and are cleaner but it will probably take you a little longer to program it that way.

Gruss Reinhold