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 

Multiple isolation levels in one cobol program

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


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Mon Mar 10, 2008 9:29 am    Post subject: Multiple isolation levels in one cobol program Reply with quote

Hi all,

I have one doubt. I have a cobol-db2 program with many sql's (select, update etc). As per my knowledge when we bind a cobol-db2 program the isolation level given as bind parameter will be taken default for all sql's in the program.

I want to know whether is it possible to specify different isolation levels to different sql's like UR for select, CS for update sql's. Please help me with my doubt.
_________________
Thanks
Madhu Sudhan
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Mar 10, 2008 10:27 am    Post subject: Reply with quote

psmadhusudhan,

Code your SELECT statements with WITH UR clause and it will solve your problem
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
psmadhusudhan
Beginner


Joined: 28 Nov 2006
Posts: 143
Topics: 48

PostPosted: Mon Mar 10, 2008 10:45 am    Post subject: Reply with quote

Thanks kolusu. As per your answer I guess we can directly specify the isolation at each sql statement, and this will override the isolation level given at bind parameter. Is it true.
_________________
Thanks
Madhu Sudhan
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 -> Database 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