FILE_STAT function has some useful information about files
VAR->OTType which is usually a "file"
VAR->OTInputFileSize: which has the file size
VAR->OTInputFileSize: which has the file size
Tips and Tricks in EDI with special emphasis on GXS translator AI (Application Integrator)