---
title: "External, Global, Value – Can we Use These in COBOL Linkage?"
description: "COBOL Linkage section top clauses of External, Global, and Value explained if you can use or not."
url: https://srinimf.com/2021/09/09/external-global-value-can-we-use-these-in-cobol-linkage/
date: 2021-09-09
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2021/09/pexels-photo-1079033.jpeg?fit=1880%2C1253&ssl=1
categories: ["COBOL"]
tags: ["COBOL External-Global-Value"]
type: post
lang: en
---

# External, Global, Value – Can we Use These in COBOL Linkage?

COBOL Linkage section’s prime purpose is to send and receive data from the called program. However, there are some clauses (External, Global, Value), which we need to know if they can use it or not. This post is all about demonstrating these.

## 1. External

Here, I used external clause. After, compilation it shows error.

Related[COBOL – Global, Initial, External,Common](https://srinimf.com/2012/03/18/cobol-global-initial-externalcommon/)

**COBOL Copy book**

Related[COBOL – How to Use ‘ CANCEL’](https://srinimf.com/2011/02/23/cobol-global-external-initial-common/)

```
MYLINK
    01 LINKAGE_COPY_BOOK  EXTERNAL.
...
...
...
```

**Calling Program**

```
CALL 'ABC' USING LINKAGE_COPY_BOOK.
```

**Called Program ‘ABC’**

```
…

…

PROCEDURE DIVISION USING LINKAGE_COPY_BOOK.
```

From the ABC program, you’ll get a compilation error. Saying that **‘EXTERNAL is not supported’**, but it supports in the working storage section. So, You can’t use ‘EXTERNAL’ in the Linkage section, but you can in Working-storage.

## 2. Global

You **can use the ‘GLOBAL’ clause in the linkage section**. The difference between Global and External is – External means any other program that refers to the said copybook. The Global is applicable only in nested programs.

## 3. Value

> Value clause you can’t use in the Linkage section. But you can give in 88 level variables.

```
01 MY_GROUP.
   88 WS_MALE VALUE '1' to '4'.
   88 WS_FEMALE  VALUE '5' to '9'
```

Related Posts

- [COBOL – How to Use ‘ CANCEL’](https://srinimf.com/2011/02/23/cobol-global-external-initial-common/)DateFebruary 23, 2011
- [COBOL – Global, Initial, External,Common](https://srinimf.com/2012/03/18/cobol-global-initial-externalcommon/)DateMarch 18, 2012
- [COBOL: EXTERNAL file Vs GLOBAL file](https://srinimf.com/2015/06/07/how-cobol-sharing-data-between-main-and-subprograms/)DateJune 7, 2015

References

- Here’s More on Linkage Section

Get new content delivered directly to your inbox.

Email Address

Sign up

–

### 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%2F2021%2F09%2F09%2Fexternal-global-value-can-we-use-these-in-cobol-linkage%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2021%2F09%2Fpexels-photo-1079033.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=External%2C%20Global%2C%20Value%20-%20Can%20we%20Use%20These%20in%20COBOL%20Linkage%3F)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2021/09/09/external-global-value-can-we-use-these-in-cobol-linkage/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2021/09/09/external-global-value-can-we-use-these-in-cobol-linkage/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2021/09/09/external-global-value-can-we-use-these-in-cobol-linkage/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2021/09/09/external-global-value-can-we-use-these-in-cobol-linkage/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20External%2C%20Global%2C%20Value%20-%20Can%20we%20Use%20These%20in%20COBOL%20Linkage%3F&body=https%3A%2F%2Fsrinimf.com%2F2021%2F09%2F09%2Fexternal-global-value-can-we-use-these-in-cobol-linkage%2F&share=email)
-

### Like this:

Like Loading…
