COBOL Date Logic, Here are Ideas (2 of 2)

Date, Fractions, and Dynamic string explained in this post for your use.

Date, Fractions, 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)

Date. is numeric. But real Date needs ‘/’. So we need to write extra code to handle date.


Fractions. 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.

Dynamic String

Dynamic String. In modern applications we get variable strings. For this there is no data type. So we need to write extra code to handle this.

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.