Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 DFHJSON-TRANSFRM container for WebSer... mbattu CICS 0 Fri Oct 20, 2017 2:18 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us