---
title: "COBOL 66 Level Useful Example"
description: "Recently in an interview asked a question about Level 66. This is a simple question but rarely used in real-time. So, 66 Level will be used to rename a group of elements. Let me show an example, A lev..."
url: https://srinimf.com/2015/03/13/66-level-in-cobol-advantage/
date: 2015-03-13
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2021/09/pexels-photo-7550823-1.jpeg?fit=867%2C1300&ssl=1
categories: ["COBOL", "Mainframe DB2"]
tags: ["66 Level in COBOL", "COBOL Tips and Tricks"]
type: post
lang: en
---

# COBOL 66 Level Useful Example

Recently in an interview asked a question about Level 66. This is a simple question but rarely used in real-time.

---

So, [66 Level](https://srinimf.com/2016/07/14/cobol-66-level-new-information-must-read/) will be used to rename a group of elements. Let me show an example,

A level-number of 66 is used to declare a re-grouping of previously defined items, irrespective of how those items are structured.

```
01  customer-record.
           05  cust-key            PIC X(10).
           05  cust-name.
               10  cust-first-name PIC X(30).
               10  cust-last-name  PIC X(30).
           05  cust-dob            PIC 9(8).
           05  cust-balance        PIC 9(7)V99.
 
       66  cust-personal-details   RENAMES cust-name THRU cust-dob.
       66  cust-all-details        RENAMES cust-name THRU cust-balance.
```

The “cust-personal-details” is a new group name to the customer-record. So the new group name will NOT take additional space, it uses the original group namespace.

Related Posts

- [How to Use COBOL 66 Level Field](https://srinimf.com/2016/07/14/cobol-66-level-new-information-must-read/)DateJuly 14, 2016
- [COBOL 66 Level and Redefines The Real Benefits](https://srinimf.com/2015/10/02/top-differences-of-cobol-66-level-and-redefines-clause/)DateOctober 2, 2015
- [USAGE Clause in COBOL Why do We need](https://srinimf.com/2017/02/23/how-to-code-usage-clause-in-cobol-example/)DateFebruary 23, 2017

### 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%2F2015%2F03%2F13%2F66-level-in-cobol-advantage%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2021%2F09%2Fpexels-photo-7550823-1.jpeg%3Ffit%3D800%252C1200%26ssl%3D1&description=COBOL%2066%20Level%20Useful%20Example)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2015/03/13/66-level-in-cobol-advantage/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2015/03/13/66-level-in-cobol-advantage/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2015/03/13/66-level-in-cobol-advantage/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2015/03/13/66-level-in-cobol-advantage/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20COBOL%2066%20Level%20Useful%20Example&body=https%3A%2F%2Fsrinimf.com%2F2015%2F03%2F13%2F66-level-in-cobol-advantage%2F&share=email)
-

### Like this:

Like Loading…
