MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to use srrcmit/srrback with IMS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
dcorbit
Beginner


Joined: 07 Jun 2006
Posts: 4
Topics: 1

PostPosted: Wed Jun 07, 2006 6:05 pm    Post subject: How to use srrcmit/srrback with IMS Reply with quote

We are using AERTDLI with the C programming language to do IMS transactions. I can open the database and read data, and that works fine.

I can insert with ISRT or update with REPL and it appears to work. However, when I exit the application, the changes roll back and nothing has happened.

I see that with ODBA we cannot use SYNC or CHKP to commit the work and that I should use SRRCMIT and SRRBACK to commit or rollback work.

However, I do not know the correct initialization or procedures to intermix the AERTDLI calls with RSS.

What initializations do I need to perform? Besides the interface to the srrcmit and srrback calls described here:
http://www.mainserver.state.mn.us/bookmgr-cgi/bookmgr.exe/handheld/BOOKS/IBMBK.ZVM44.CN1R1000.BOOK/%44%2E%32?SHELF=IBMBK.ZVM44.HCSH2A60.BKSHELF&DT=19920107115443

what are the necessary steps to perform commits?

It seems very strange to me that I can do a successful ROLS and SETS but not a SYNC or a CHKP and so I know that there must be a simple way to perform a commit.

Sample code would be ideal, but a sensible explanation would also be wonderful.
Back to top
View user's profile Send private message
dcorbit
Beginner


Joined: 07 Jun 2006
Posts: 4
Topics: 1

PostPosted: Thu Jun 08, 2006 1:24 pm    Post subject: Re: How to use srrcmit/srrback with IMS Reply with quote

dcorbit wrote:

However, I do not know the correct initialization or procedures to intermix the AERTDLI calls with RSS.

Of course, that should be 'RRS' (Resource Recovery Services) and not 'RSS'.
Back to top
View user's profile Send private message
dcorbit
Beginner


Joined: 07 Jun 2006
Posts: 4
Topics: 1

PostPosted: Thu Jun 08, 2006 1:31 pm    Post subject: Reply with quote

A bit more information:
When I do (for instance) an insert, I get a return of 0 from the AIB status code, a blank PCB mask status code.

However, when I attempt to perform srrcmit I get back the status:
RR_PROGRAM_STATE_CHECK

I am sure it is something simple that I am leaving out.

How do I initialize the RRS so that it knows what states my transactions are in?
Back to top
View user's profile Send private message
dcorbit
Beginner


Joined: 07 Jun 2006
Posts: 4
Topics: 1

PostPosted: Thu Jun 08, 2006 2:10 pm    Post subject: Reply with quote

We figured it out. It was a JCL problem, linking in the wrong library.
Once we switched to using ATRSCSS everything works fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group