FILE_GET_SIZE

Use

Retrieves the size of the specified file in bytes.

Arguments

[IMPORTING] file_name TYPE STRING

Name of file whose size should be retrieved. The file name may not contain environment variables. Any path information in the file name has to be relative or absolute.

[EXPORTING] file_size TYPE I

Size of file. The maximum size of a file that can be returned by this function is limited to 2 GByte minus 1 byte. For files whose size exceeds this value, the value returned is undetermined and can be negative. Newer versions of the Windows GUI and the GUI for the Java Environment return the above mentioned value for files that exceed this size.

Exceptions

CNTL_ERROR

A CNTL_ERROR is thrown if the call to the front end method fails.

ERROR_NO_GUI

This exception is raised if no file name was specified.

NOT_SUPPORTED_BY_GUI

Thrown if neither Windows nor Java nor Web GUI is being used.