In this program, which builds upon the previous programs, the following lines of code:
EXEC SQL
   DECLARE COBCUR1 CURSOR FOR 
       SELECT
            C_NUMBER, C_FIRST_NAME, C_LAST_NAME,
            TO_CHAR, C_INFO
       FROM CUSTOMER
       WHERE C_NUMBER >= :C-NUMBER
END-EXEC.
EXEC SQL 
   OPEN COBCUR1 
END-EXEC.
perform until SQLCODE not equal 0
    EXEC SQL
         FETCH COBCUR1 INTO :C-RECORD
    END-EXEC
    IF sqlcode EQUAL 0
         display c-number, ": ",c-first-name, 
                 c-last-name, c-info
    end-if
end-perform.
EXEC SQL
    CLOSE COBCUR1
END-EXEC.cause the program to do the following: