---
title: "Can “STOP RUN” be Given in COBOL Subroutines"
description: "The statement \" STOP RUN \" be given usually in calling modules. When the \"STOP RUN\" statement encounters, this tells COBOL run-time unit to stop execution of COBOL program. https://srinimf.com/2017/04..."
url: https://srinimf.com/2015/10/04/can-stop-run-be-given-in-cobol-subroutines/
date: 2015-10-04
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2015/10/pexels-photo-7578418.jpeg?fit=1880%2C1253&ssl=1
categories: ["COBOL"]
tags: ["STOP RUN in COBOL"]
type: post
lang: en
---

# Can “STOP RUN” be Given in COBOL Subroutines

The statement “[STOP RUN](https://srinimf.com/2010/08/28/cobol-goback-and-stoprun/)” be given usually in calling modules. When the “STOP RUN” statement encounters, this tells COBOL run-time unit to stop execution of COBOL program.

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/)

Related[COBOL: Static Vs Dynamic Call Which is Better](https://srinimf.com/2015/01/25/cobol-static-call-and-dynamic-call/)

## Why Can’t STOP RUN to be Given in Subroutine

- This is the reason, it cannot be given in subroutines. The point is, the same question asked in many interviews that, what happens if be given in subroutines.
- The answer is, COBOL run time unit gets stopped unexpectedly and the calling module issues an abend/exception.
- But, the non standard GOBACK statement can be given in both calling/called modules.

Related Posts

- [EXIT PROGRAM – Real Reason to Code in Cobol Subroutine](https://srinimf.com/2015/10/04/cobol-subroutine-why-exit-program-is-mandatory/)DateOctober 4, 2015
- [COBOL: 3 Simple Tips to Know Module is Subroutine](https://srinimf.com/2015/10/05/how-to-identify-a-given-module-is-subroutine-in-cobol-programming/)DateOctober 5, 2015
- [Java Class Vs. COBOL Program The Interesting Differences](https://srinimf.com/2015/09/21/java-for-mainframe-coders-cobol-subroutine-vs-java-class/)DateSeptember 21, 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%2F2015%2F10%2F04%2Fcan-stop-run-be-given-in-cobol-subroutines%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2015%2F10%2Fpexels-photo-7578418.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=Can%20%22STOP%20RUN%22%20be%20Given%20in%20COBOL%20Subroutines)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2015/10/04/can-stop-run-be-given-in-cobol-subroutines/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2015/10/04/can-stop-run-be-given-in-cobol-subroutines/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2015/10/04/can-stop-run-be-given-in-cobol-subroutines/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2015/10/04/can-stop-run-be-given-in-cobol-subroutines/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20Can%20%22STOP%20RUN%22%20be%20Given%20in%20COBOL%20Subroutines&body=https%3A%2F%2Fsrinimf.com%2F2015%2F10%2F04%2Fcan-stop-run-be-given-in-cobol-subroutines%2F&share=email)
-

### Like this:

Like Loading…
