Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference Between GOBACK and RETURN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Difference Between GOBACK and RETURN
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    Post subject: Hi Karthik
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    Post subject: Reply to: Difference Between GOBACK and RETURN
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Difference Between GOBACK and RETURN
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    Post subject: return and goback
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts DFHWS2LS return value divated CICS 4 Mon Nov 07, 2016 5:44 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts EZASOCKET Return code 32509 amitc23 All Other Mainframe Topics 4 Mon May 23, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us