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

Terminating application after hold call


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abin

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Mon Mar 17, 2008 5:21 pm
Reply with quote

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
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Mon Mar 17, 2008 6:14 pm
Reply with quote

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
View user's profile Send private message
abin

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Mon Mar 17, 2008 6:50 pm
Reply with quote

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
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Mon Mar 17, 2008 6:55 pm
Reply with quote

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
View user's profile Send private message
abin

Active User


Joined: 14 Aug 2006
Posts: 198

PostPosted: Mon Mar 17, 2008 7:09 pm
Reply with quote

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
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Mon Mar 17, 2008 7:11 pm
Reply with quote

GOBACK indicates that your program will go back where it originated.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts DB2 Event passed to the Application P... DB2 1
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
Search our Forums:

Back to Top