IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference Between GOBACK and RETURN


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rathinakarthik

New User


Joined: 25 Jul 2006
Posts: 24

PostPosted: Thu Apr 10, 2008 12:01 pm
Reply with quote

Hi,

Could you please tell me the Difference between GOBACK and RETURN.
Please advise how the Memory will be shared and used in both.

Thank you
Back to top
View user's profile Send private message
revel

Active User


Joined: 05 Apr 2005
Posts: 135
Location: Bangalore/Chennai-INDIA

PostPosted: Thu Apr 10, 2008 12:36 pm
Reply with quote

Quote:
Could you please tell me the Difference between GOBACK and RETURN.
Please advise how the Memory will be shared and used in both.


GOBACK
______________

If you are using GOBACK, It will transfer control to particular region

Say,

If you are using in CICS, It will pass control to CICS region not to OPERATING Sysytem

RETURN
______________

Where as RETURN is used to establish thread between APPLICATION PROGRAM and for PARTICULAR TRANSACTION

ie

Code:
EXEC CICS RETURN
         TRANSID('OPNR')--------------> TRANSACTION NAME           
          .
          .
END-EXEC   


For this

Quote:
Please advise how the Memory will be shared and used in both.


Be specific

Thank's & Regard
Raghavendra
Back to top
View user's profile Send private message
rathinakarthik

New User


Joined: 25 Jul 2006
Posts: 24

PostPosted: Thu Apr 10, 2008 2:55 pm
Reply with quote

Thank you for the Reply,

Reg "Please advise how the Memory will be shared and used in both"

What i want to know is , how memory storage usage will behave in GOBACK and RETURN

Say suppose , when i use GOBACK what happens to the Storage i used , whether it will be freed? Whether the Storage can be reused?

What will be the behaviour in RETURN

Thanks
Back to top
View user's profile Send private message
revel

Active User


Joined: 05 Apr 2005
Posts: 135
Location: Bangalore/Chennai-INDIA

PostPosted: Fri Apr 11, 2008 12:12 pm
Reply with quote

Quote:
What i want to know is , how memory storage usage will behave in GOBACK and RETURN

Say suppose , when i use GOBACK what happens to the Storage i used , whether it will be freed? Whether the Storage can be reused?


Good Question

In case of GOBACK, The control will give back to CICS REGION mean The Load module will try to unload from CICS Region

In case other Transaction want that load module then it won't unload instead it will get used...


Where as RETURN is used to establish thread between Program and Transaction its nothing relate to Memory
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Apr 12, 2008 12:27 am
Reply with quote

you can perform a CICS RETURN without using TRANSID option.
Back to top
View user's profile Send private message
revel

Active User


Joined: 05 Apr 2005
Posts: 135
Location: Bangalore/Chennai-INDIA

PostPosted: Sat Apr 12, 2008 10:45 am
Reply with quote

Ya.. You can perform RETURN without TRANSID, the thing control will won't come back again to application pgm
Back to top
View user's profile Send private message
rathinakarthik

New User


Joined: 25 Jul 2006
Posts: 24

PostPosted: Mon Apr 14, 2008 6:33 pm
Reply with quote

Thank you Very much for clearing my doubts.

Thank you
Rathina
Back to top
View user's profile Send private message
Habibmf

New User


Joined: 13 Apr 2008
Posts: 1
Location: Bangalore

PostPosted: Tue May 06, 2008 10:29 am
Reply with quote

Goback is used in subprogram ,

Return command is used in cics for return control back to os or coorsponding commarea or dfhcommarea.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat May 17, 2008 4:01 am
Reply with quote

exec cics return returns does not return to the DFHCOMMAREA (thats a storage area).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Timestamp difference and its average ... DB2 11
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
Search our Forums:

Back to Top