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

Have Something to Say? Post Your Comment

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s