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
 
Commit of a DB2 update from a calling program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Fri May 21, 2010 11:29 am    Post subject: Commit of a DB2 update from a calling program
Reply with quote

Hi,

I have a cobol program say PROG A which updates records in a VSAM file. It calls a DB2 program which updates a DB2 table for this record.

If the calling program PROG A updates a record in the VSAM file, and calls the DB2 program. Now after the DB2 program when the control goes over to PROG A, will the commit happen before the control goes to PROG A or will the commit happen at the end of the program?
Sorry if this is a repost.
Back to top
View user's profile Send private message

mallik4u

New User


Joined: 17 Sep 2008
Posts: 75
Location: bangalore

PostPosted: Fri May 21, 2010 4:19 pm    Post subject:
Reply with quote

hi,

Where is the COMMIT coded. Is it in calling program or called program?
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Fri May 21, 2010 4:25 pm    Post subject: Reply to: Commit of a DB2 update from a calling program
Reply with quote

I am sorry, I didnt mention that earlier, but I meant if the commit is not coded at all.
Back to top
View user's profile Send private message
mallik4u

New User


Joined: 17 Sep 2008
Posts: 75
Location: bangalore

PostPosted: Fri May 21, 2010 4:41 pm    Post subject:
Reply with quote

i think data will get updated permanently once the control goes back to the calling program. This might not be true for CICS programs.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri May 21, 2010 5:43 pm    Post subject:
Reply with quote

I think not. so now hiravibk doesn't have a clue
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 21, 2010 8:53 pm    Post subject:
Reply with quote

Hello,

Running a test or 2 comes to mind. . .

Let us know what happens when you run some tests. . .
Back to top
View user's profile Send private message
Gijz

New User


Joined: 27 Nov 2007
Posts: 9
Location: The Netherlands

PostPosted: Fri Jun 11, 2010 8:04 pm    Post subject:
Reply with quote

At the (normal) end of prog A, assuming prog A is the main program. This is true for batch as well as for CICS.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm

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