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

Rollback in called program !


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shailesh_do

New User


Joined: 27 Jun 2006
Posts: 9

PostPosted: Sat Oct 31, 2009 9:13 pm
Reply with quote

Hi All,

This was an interview question ;

Program A has a cursor updating some table. If update is successful I have to carry an indicator field(could be any column's value to be used by program B's sql) to the another program(say program B) which is being called by program A.

Now If my SQL in pgm B fails, I have coded ROLLBACK (in pgm B), would this ROLLBACK cause upate of pgm A also to be rolled back or will update of pgm A will be allowed to commit?

Hope I tried to explain my question clearly.

Please suggest.
Thanks in advance.
Shailesh
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Oct 31, 2009 10:01 pm
Reply with quote

suggest you search the db2 forum of this website.

question has been asked and answered several times. no need for yet another.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top