---
title: "How to Use Return Command in CICS"
description: "Return is one of the beautiful command in CICS, which passes control to other program of next higher logical level, or to CICS. https://srinimf.com/2014/05/28/cics-channels-and-dfhcommarea/. The LENGT..."
url: https://srinimf.com/2015/10/28/top-stunning-questions-on-cics-return-command/
date: 2015-10-28
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2015/10/pexels-photo-414630.jpeg?fit=1880%2C1254&ssl=1
categories: ["CICS Tips"]
tags: ["cics command"]
type: post
lang: en
---

# How to Use Return Command in CICS

**Return** is one of the beautiful command in CICS, which passes control to other program of next higher logical level, or to CICS.

Related[CICS- Channels And DFHCOMMAREA](https://srinimf.com/2014/05/28/cics-channels-and-dfhcommarea/)

The LENGTH value in RETURN command should not be higher than the size of DFHCOMMAREA (32760 bytes max).

- The passing CHANNEL name should have been already created. Else, it create new channel. The length of CHANNEL should be max 16 characters.

**ENDACTIVITY- **you no need to give this command in all the cases. Usually, when CICS business transaction services (BTS) activities is used, that time, it is required. This command completes an activity.

Related[Ten Top DFHCOMMAREA QUIZ Questions](https://srinimf.com/2015/10/27/ten-top-dfhcommarea-quiz-questions/)

**IMMEDIATE** -This command gives high priority to the Transactions.ensures that the transaction specified in the TRANSID option is attached as the next transaction regardless of any other transactions enqueued by ATI for this terminal.
The next transaction starts immediately and appears to the operator as having been started by terminal data. If the terminal is using bracket protocol, the terminal is also held in bracket. This option is valid only on a RETURN command issued by a program at the highest logical level, that is a program returning control to CICS.

In RETURN command you can control TRANSID, but if that program, where passing control, is already defined with other TRANSID (permanent). Then priority goes to that TRANSID.

Keep Reading

- [Ten Top DFHCOMMAREA QUIZ Questions](https://srinimf.com/2015/10/27/ten-top-dfhcommarea-quiz-questions/)DateOctober 27, 2015
- [CICS- Channels And DFHCOMMAREA](https://srinimf.com/2014/05/28/cics-channels-and-dfhcommarea/)DateMay 28, 2014
- [5 Ways to Share Data in CICS Programs](https://srinimf.com/2016/01/22/5-ways-how-data-sharing-happens-in-cics-transactions/)DateJanuary 22, 2016

### 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%2F28%2Ftop-stunning-questions-on-cics-return-command%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2015%2F10%2Fpexels-photo-414630.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=How%20to%20Use%20Return%20Command%20in%20CICS)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2015/10/28/top-stunning-questions-on-cics-return-command/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2015/10/28/top-stunning-questions-on-cics-return-command/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2015/10/28/top-stunning-questions-on-cics-return-command/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2015/10/28/top-stunning-questions-on-cics-return-command/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20How%20to%20Use%20Return%20Command%20in%20CICS&body=https%3A%2F%2Fsrinimf.com%2F2015%2F10%2F28%2Ftop-stunning-questions-on-cics-return-command%2F&share=email)
-

### Like this:

Like Loading…
