---
title: "COBOL Tough Questions (2 of 3)"
description: "COBOL part 2 of 3 f tough interview questions to read now."
url: https://srinimf.com/2012/01/08/cobol-tough-questions-2-of-3/
date: 2012-01-08
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2012/01/pexels-photo-3801426.jpeg?fit=1880%2C1254&ssl=1
categories: ["COBOL"]
tags: ["COBOL Interview Questions"]
type: post
lang: en
---

# COBOL Tough Questions (2 of 3)

[Here is](https://srinimf.com/2016/02/01/how-to-give-vb-record-in-linkage-section/) my [part-1](http://srinimf.com/2012/01/01/cobol-tough-questions-1-of-3/) if you miss it.

**1. Can we give Value-clause for OCCURS variable?**

Yes, It is allowed to use Value-clause, for the variable, where OCCURS defines. The standard rule is, we can’t declare OCCURS at level 01.

Related[Stratus COBOL or VoS COBOL -Comp-4 Vs Comp-5 and Comp-6](https://srinimf.com/2016/06/24/stratus-cobol-or-vos-cobol-comp-4-vs-comp-5-and-comp-6/)

```
01 Header-one.
   05 Detail-one occurs 1000 times value '121'
      10 Sub-one PIC 9(03).
```

**2. What is the name of COBOL compiler and Link edit?**

Cobol compiler is **IGYCRCTL,** and the Link editor name is **IEWL**.

**3. Can you share brief about COMP fields?**

Comp, Comp-1, Comp-2, Comp-3 (packed decimal). Comp-Data stores in binary format. Storage for **COMP** is platform dependent.

- **Comp-1-** Single precision floating-point value. It stores in 4 bytes. Example: PIC S9V999ES99–>32bits, 7+bits
- **Comp-2**–[Double precision floating](https://srinimf.com/2014/02/05/cobol-single-double-floating-point/)-point values. It stores in 8 bytes. Example: PIC S9V999ES99 –>64 bits, 16+bits
- **Comp-3 **– Stores data in BCD (Binary coded decimal format). It is platform-independent.
- **Comp-4**, Comp-5 – These [data types](https://srinimf.com/2015/08/17/db2-numeric-string-date-time-data-types/) similar to **COMP**

Refer for [more here](http://www.3480-3590-data-conversion.com/article-cobol-comp.html).

Related[JCL-Sort card “BI” to “ZD”](https://srinimf.com/2012/02/03/jcl-sort-card-bi-to-zd/)

### 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%2F2012%2F01%2F08%2Fcobol-tough-questions-2-of-3%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2012%2F01%2Fpexels-photo-3801426.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=COBOL%20Tough%20Questions%20%282%20of%203%29)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2012/01/08/cobol-tough-questions-2-of-3/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2012/01/08/cobol-tough-questions-2-of-3/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2012/01/08/cobol-tough-questions-2-of-3/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2012/01/08/cobol-tough-questions-2-of-3/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20COBOL%20Tough%20Questions%20%282%20of%203%29&body=https%3A%2F%2Fsrinimf.com%2F2012%2F01%2F08%2Fcobol-tough-questions-2-of-3%2F&share=email)
-

### Like this:

Like Loading…