Cobol-Data Challenges(2 of 2)

Date: In general Cobol has two data types. It supports numeric and text. But modern applications has various data types.

Typically speaking, Date. This is not a number. This is date.

03 DATE1      PIC 9(6)

This 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 separate program, using unstring to convert it into fractions.

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.

About these ads