---
title: "COBOL CALL BY Reference and CALL BY Content"
description: "The simple and crispy answer for COBOL call by reference and content."
url: https://srinimf.com/2017/03/02/cobol-call-by-reference-and-call-by-content/
date: 2017-03-02
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2017/03/pexels-photo-3760323.jpeg?fit=1880%2C1253&ssl=1
categories: ["COBOL"]
tags: ["COBOL Call By Content", "COBOL Call By Reference"]
type: post
lang: en
---

# COBOL CALL BY Reference and CALL BY Content

Here is logic on [how to](https://srinimf.com/2013/04/11/bpxwdyn-utility-to-allocate-file/) pass data in COBOL using CALL BY Value and CALL BY Reference methods in COBOL.  

Related[Cobol Tough Questions (1 of 3)](https://srinimf.com/2012/01/01/cobol-tough-questions-1-of-3/)

## How to Pass data From Main module to Submodule

You can do it in two ways. One is sharing address to sub-module, and the other is passing only content.

### CALL BY Reference

**Call** ‘**abcd**‘ **using** **data-1.**

Here you share the address. So the called program can receive data that modified by the submodule. The CALL BY Reference is the default method in COBOL.

### CALL BY Content

In the second case, you pass only data, and the called program can’t receive back from the submodule.

Related[Real Personality Development Training](https://srinimf.com/2017/10/14/awesome-motivational-video-to-quick-self-development/)

**Call** ‘**abcd**‘ **by** **content** **using** **data-1**.

- It is called **CALL BY content**. The called program can’t receive modified data (by Submodule).
- Suppose, you pass **DATE** to a submodule. But, the called program doesn’t receive it back since it is not needed. Here you can use this method. [Here is list of free to download COBOL Materials.](https://srinimf.com/2016/04/02/srinimf-downloads/)

Related Posts

- [COBOL: How to Pass Pointer Variable Between Programs](https://srinimf.com/2015/12/31/how-to-pass-cobol-pointer-data-items-in-call-by-reference/)DateDecember 31, 2015
- [COBOL: EXTERNAL file Vs GLOBAL file](https://srinimf.com/2015/06/07/how-cobol-sharing-data-between-main-and-subprograms/)DateJune 7, 2015
- [Editing Vs Decimal Data types: Top COBOL Move Statements](https://srinimf.com/2015/12/29/one-check-list-for-cobol-tricky-move-statements/)DateDecember 29, 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%2F2017%2F03%2F02%2Fcobol-call-by-reference-and-call-by-content%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2017%2F03%2Fpexels-photo-3760323.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=COBOL%20CALL%20BY%20Reference%20and%20CALL%20BY%20Content)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2017/03/02/cobol-call-by-reference-and-call-by-content/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2017/03/02/cobol-call-by-reference-and-call-by-content/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2017/03/02/cobol-call-by-reference-and-call-by-content/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2017/03/02/cobol-call-by-reference-and-call-by-content/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20COBOL%20CALL%20BY%20Reference%20and%20CALL%20BY%20Content&body=https%3A%2F%2Fsrinimf.com%2F2017%2F03%2F02%2Fcobol-call-by-reference-and-call-by-content%2F&share=email)
-

### Like this:

Like Loading…
