Demonstrates how the PERFORM..UNTIL (third format) may be used to process a stream of values where the length of the stream cannot be determined in advance (although in this case there is a set maximum number of values in the stream).
Demo & Full Guide
COBOL Program Demonstrates how the PERFORM..UNTIL