---
title: "How Program Control Happens in COBOL Run-unit"
description: "A run unit is a particular number of executable programs that act as a logical unit at run time. A run unit may consist of. – one or more separately compiled programs, – one or more nested programs, –..."
url: https://srinimf.com/2016/03/03/how-program-control-happens-in-cobol-run-unit/
date: 2016-03-03
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2016/03/pexels-photo-634538.jpeg?fit=1880%2C1109&ssl=1
categories: ["COBOL"]
tags: ["COBOL Tips and Tricks"]
type: post
lang: en
---

# How Program Control Happens in COBOL Run-unit

A run unit is a particular number of executable programs that act as a logical unit at run time.
A run unit may consist of
– one or more separately compiled programs,
– one or more nested programs,
– a combination of separately compiled programs and nested programs.
The program started on the system level is referred to as “main program” and all other programs of the run unit are known as “subprograms”.

## What happens during Run-time.

![Cobol](https://i0.wp.com/srinimf.com/wp-content/uploads/2016/03/cobol.png?resize=558%2C389&ssl=1)

Control of a run unit begins with the program that is called on the system level. Each further program of the run unit is called by means of the CALL statement.

Related[COBOL Ideas What Happens When You Give Stop RUN in Submodule](https://srinimf.com/2017/04/09/what-happens-when-stop-run-given-in-subprogram/)

The CALL statement transfers program control to the called program. From there, control is subsequently returned to the calling program by means of the EXIT PROGRAM statement.

The program is continued at the statement following the CALL statement. The following example illustrates the logical structure of a run unit comprising five separately compiled programs, including one nested program:

Related Posts

- [Stratus COBOL Material](https://srinimf.com/2015/04/02/stratus-cobol-material/)DateApril 2, 2015
- [COBOL – How to Use ‘ CANCEL’](https://srinimf.com/2011/02/23/cobol-global-external-initial-common/)DateFebruary 23, 2011
- [External, Global, Value – Can we Use These in COBOL Linkage?](https://srinimf.com/2021/09/09/external-global-value-can-we-use-these-in-cobol-linkage/)DateSeptember 9, 2021

### 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%2F2016%2F03%2F03%2Fhow-program-control-happens-in-cobol-run-unit%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2016%2F03%2Fpexels-photo-634538.jpeg%3Ffit%3D1200%252C708%26ssl%3D1&description=How%20Program%20Control%20Happens%20in%20COBOL%20Run-unit)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2016/03/03/how-program-control-happens-in-cobol-run-unit/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2016/03/03/how-program-control-happens-in-cobol-run-unit/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2016/03/03/how-program-control-happens-in-cobol-run-unit/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2016/03/03/how-program-control-happens-in-cobol-run-unit/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20How%20Program%20Control%20Happens%20in%20COBOL%20Run-unit&body=https%3A%2F%2Fsrinimf.com%2F2016%2F03%2F03%2Fhow-program-control-happens-in-cobol-run-unit%2F&share=email)
-

### Like this:

Like Loading…
