View previous topic :: View next topic
|
Author |
Message |
rathinakarthik
New User
Joined: 25 Jul 2006 Posts: 24
|
|
|
|
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 |
|
|
revel
Active User
Joined: 05 Apr 2005 Posts: 135 Location: Bangalore/Chennai-INDIA
|
|
|
|
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 |
|
|
rathinakarthik
New User
Joined: 25 Jul 2006 Posts: 24
|
|
|
|
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 |
|
|
revel
Active User
Joined: 05 Apr 2005 Posts: 135 Location: Bangalore/Chennai-INDIA
|
|
|
|
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 |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
you can perform a CICS RETURN without using TRANSID option. |
|
Back to top |
|
|
revel
Active User
Joined: 05 Apr 2005 Posts: 135 Location: Bangalore/Chennai-INDIA
|
|
|
|
Ya.. You can perform RETURN without TRANSID, the thing control will won't come back again to application pgm |
|
Back to top |
|
|
rathinakarthik
New User
Joined: 25 Jul 2006 Posts: 24
|
|
|
|
Thank you Very much for clearing my doubts.
Thank you
Rathina |
|
Back to top |
|
|
Habibmf
New User
Joined: 13 Apr 2008 Posts: 1 Location: Bangalore
|
|
|
|
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 |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
exec cics return returns does not return to the DFHCOMMAREA (thats a storage area). |
|
Back to top |
|
|
|