How to String Ends With in COBOL - Code Snippet

How to perform 'String Ends With' in COBOL.

example.cbl
* Task: String Ends With
* Language: COBOL

PROCEDURE DIVISION. string_ends_with() 
    * Implementation for String Ends With
    * TODO: Implement core logic here
    * Step 1: Prepare data
    * Step 2: Process String Ends With
    DISPLAY("Done");
STOP RUN.
AdSense Slot