View previous topic :: View next topic
|
Author |
Message |
abin
Active User
Joined: 14 Aug 2006 Posts: 198
|
|
|
|
Hi,
Could some one please tell me if there is any issue in terminating a COBOL code using GOBACK or STOP RUN after a get hold call(GHU or GHNP or GHN). |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Why would you want to issue a hold call and then exit? Please change your "stop run" to "goback". Once you exit the program, you will no longer be holding the segment. |
|
Back to top |
|
|
abin
Active User
Joined: 14 Aug 2006 Posts: 198
|
|
|
|
Hi,
Baically I would not want to do it. But if my flow of execution goes that way?. That is I am GHUing a segment and based on some values in retrieved segment I will decide whether the segment needs to be updated. At some conditions segment will not be updated and process flow goes to goback.
At such instances will there be any unseen issues. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Just make sure that you always check your status field in the PCB for that database - immediately after each call. As long as you exit your program with a goback, you will be fine. When you exit your program, you are no longer "talking" to IMS. |
|
Back to top |
|
|
abin
Active User
Joined: 14 Aug 2006 Posts: 198
|
|
|
|
HI,
Quote: |
As long as you exit your program with a goback, you will be fine. When you exit your program, you are no longer "talking" to IMS. |
Does that means EXIT has some issues?. A GOBACK transfers control from application to IMS control region and EXIT does not does right?. Will this make an issue. Or is it like I cannot give EXIT in BMP code. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
GOBACK indicates that your program will go back where it originated. |
|
Back to top |
|
|
|