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 

IMS ROLBACK

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


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Thu Jan 29, 2015 10:41 am    Post subject: IMS ROLBACK Reply with quote

HI,

Is it possible that we can do the ROLL BACK on a particular database in IMS? can we able to specify in ROLLBACK transaction pointing to a particular database
_________________
Tx
Digger
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Thu Jan 29, 2015 11:23 am    Post subject: Reply with quote

MFdigger,


Yes you can issue Roll Back (ROLB) call is used to dynamically back out database changes and return control to your program.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFSAPDF8/1.5.13

or you can issue Roll (ROLL) call is used to abnormally terminate your program and to dynamically back out database changes

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFSAPDF8/1.5.14

or you can issue Roll Back to SETS (ROLS) call is used to back out to a processing point set by a prior SETS or SETU call.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFSAPDF8/1.5.15?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MFdigger
Beginner


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Wed Feb 04, 2015 3:12 pm    Post subject: Reply with quote

Thank you Kolusu

I'm trying to use SETS as below and when I try to recompile the program, I'm facing the compilation error as

"SETS" was not defined as a data-name

Not sure why its not recognizing the SETS function

Code:

 CALL "CBLTDLI"  USING  SETS     
                       IOPCB.




Rolling Eyes
_________________
Tx
Digger
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Thu Feb 05, 2015 11:54 am    Post subject: Reply with quote

MFdigger,

Did you get the error message during compile or run time? And what is your IMS version?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MFdigger
Beginner


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Thu Feb 05, 2015 2:45 pm    Post subject: Reply with quote

Thank you Kolusu. I have defined the SETS in a field and used the field in the call and it worked , but other functions which used in program are working fine

now, I could able to recompile the program and when I run the program, I'm facing with 'SC' status code.

as per the manual, the explanation for SC status code is as shown below. However, the Databases which we are using is HALDB. in the PSB, we have GSAM files also in the PCB. I'm not sure if I'm facing SC status code because of GSAM in PSB

Explanation: The SETS request was rejected because the PSB contains an access to a DEDB, MSDB, or GSAM organization or has accessed an attached subsystem.
Programmer Response: The SETS request is invalid in this environment. The program must either remove the use of the database organization that is preventing the use of the SETS request, or the program must not use the SETS request.
_________________
Tx
Digger
Back to top
View user's profile Send private message
MFdigger
Beginner


Joined: 09 Sep 2005
Posts: 124
Topics: 52
Location: Chicago

PostPosted: Thu Feb 19, 2015 2:38 pm    Post subject: Reply with quote

Hi,

Is there any way in IMS that we can identify that ROLLBACK call was issued some where in the chain of program calls?
Rolling Eyes
_________________
Tx
Digger
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