os.Path.size

The os.Path.size is used to return the file size. The syntax of the function is as follows:

 

CALL os.Path.size(f_name) RETURNING f_size

 

where:

·         f_name = a variable of a STRING data type standing for the file name,

·         f_size = an integer variable standing for the file size.

 

Usage

In case the function fails to get the file size, it returns the negative integer -1.