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
 

 

Terminating application after hold call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Terminating application after hold call
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TWS EQQYCAIN - not sure how to get ap... mbenaud IBM Tools 0 Wed Dec 14, 2016 8:45 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm


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