How to Get File Size in COBOL - Code Snippet

How to perform 'Get File Size' in COBOL.

example.cbl
* Task: Get File Size
* Language: COBOL

PROCEDURE DIVISION. get_file_size() 
    * Implementation for Get File Size
    * TODO: Implement core logic here
    * Step 1: Prepare data
    * Step 2: Process Get File Size
    DISPLAY("Done");
STOP RUN.
AdSense Slot