View previous topic :: View next topic |
Author |
Message |
dcorbit Beginner
Joined: 07 Jun 2006 Posts: 4 Topics: 1
|
Posted: Wed Jun 07, 2006 6:05 pm Post subject: How to use srrcmit/srrback with IMS |
|
|
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 |
|
 |
dcorbit Beginner
Joined: 07 Jun 2006 Posts: 4 Topics: 1
|
Posted: Thu Jun 08, 2006 1:24 pm Post subject: Re: How to use srrcmit/srrback with IMS |
|
|
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 |
|
 |
dcorbit Beginner
Joined: 07 Jun 2006 Posts: 4 Topics: 1
|
Posted: Thu Jun 08, 2006 1:31 pm Post subject: |
|
|
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 |
|
 |
dcorbit Beginner
Joined: 07 Jun 2006 Posts: 4 Topics: 1
|
Posted: Thu Jun 08, 2006 2:10 pm Post subject: |
|
|
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 |
|
 |
|
|