---
title: "Real Logic COBOL Date, Fraction and Strings"
description: "Here is all about Date, Fraction and Strings"
url: https://srinimf.com/2013/04/24/cobol-data-challenges2-of-2/
date: 2013-04-24
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2021/09/quote-chalk-think-words.jpg?fit=1880%2C1253&ssl=1
categories: ["COBOL"]
tags: ["COBOL Tips and Tricks"]
type: post
lang: en
---

# Real Logic COBOL Date, Fraction and Strings

Explained Date, Fractions, and Dynamic strings for your reference.

## **COBOL Date, Fraction and Strings**

**Date**

Two Data types you can see [in COBOL](https://srinimf.com/2014/05/14/pipe-delimited-file/). Those are Text and Numeric. Modern applications need different data types. For example, you can say it as Date.

Related[Two Types of PLSQL Cursors: What are those?](https://srinimf.com/2022/01/23/two-types-of-plsql-cursors-what-are-those/)

```
03 DATE1      PIC 9(6)
```

**Date.**

It is numeric. But real Date needs ‘/’. So we need [to write](https://srinimf.com/2023/06/24/how-to-write-dynamic-sql-logic-in-cobol/) extra code to handle the Date.

Fractions

**Fractions. **

For example ’52/3′ COBOL does not understand directly this fraction. So we need to write a separate program, using unstring [to convert](https://srinimf.com/2016/03/07/how-to-convert-sql-error-code-into-text-message-dsntiar/) 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.

Related articles

- [Stratus COBOL Material](https://srinimf.com/2015/04/02/stratus-cobol-material/)DateApril 2, 2015
- [COBOL really you need ideas to modify strings](https://srinimf.com/2016/06/01/cobol-examples-for-inspect-replacing-and-converting/)DateJune 1, 2016
- [Limitations of COBOL Intrinsic Functions](https://srinimf.com/2015/10/15/limitations-of-cobol-intrinsic-functions/)DateOctober 15, 2015

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2013%2F04%2F24%2Fcobol-data-challenges2-of-2%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2021%2F09%2Fquote-chalk-think-words.jpg%3Ffit%3D1200%252C800%26ssl%3D1&description=Real%20Logic%20COBOL%20Date%2C%20Fraction%20and%20Strings)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2013/04/24/cobol-data-challenges2-of-2/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2013/04/24/cobol-data-challenges2-of-2/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2013/04/24/cobol-data-challenges2-of-2/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2013/04/24/cobol-data-challenges2-of-2/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20Real%20Logic%20COBOL%20Date%2C%20Fraction%20and%20Strings&body=https%3A%2F%2Fsrinimf.com%2F2013%2F04%2F24%2Fcobol-data-challenges2-of-2%2F&share=email)
-

### Like this:

Like Loading…
