Explained Date, Fractions, and Dynamic strings for your reference.
COBOL Date, Fraction and Strings
Two Data types you can see in COBOL. Those are Text and Numeric. Modern applications need different data types. For example, you can say it as Date.
03 DATE1 PIC 9(6)
It is numeric. But real Date needs ‘/’. So we need to write extra code to handle the Date.
For example ’52/3′ COBOL does not understand directly this fraction. So we need to write a separate program, using unstring to convert it into fractions.
In modern applications we get variable strings. For this there is no data type. So we need to write extra code to handle this.