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 aviod Database inserts/updates in Production?

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


Joined: 26 Sep 2005
Posts: 17
Topics: 5

PostPosted: Mon Sep 26, 2005 2:17 pm    Post subject: How to aviod Database inserts/updates in Production? Reply with quote

Hi,

we have bunch of cobol programs in production where they update/insert values into DB2 tables. But occationally we would not required to update/insert the values into tables when we execute those programs.

What would be the best and simple way for this ? any ideas ....

Please advice.

Thanks.
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Sep 26, 2005 2:52 pm    Post subject: Reply with quote

satya_mn_99,
Your requirement is a business process logic, you may pass a Parm thru JCL and eveluate the parm in your code and have a bypass logic or any other appropriate logic in the code. Thanks
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Sep 27, 2005 1:38 am    Post subject: Reply with quote

Satya_mn_99,

Quote:

But occationally we would not required to update/insert the values into tables when we execute those programs.


Can you give us more detail on when you get to do this ? Since you are talking about production, I believe this occasional run is not for any kind of testing.

As mentioned by Sureshkumar, if this is your business requirement that every few days, you need to run the same program without updating values then passing PARM would be the easiest way.

Thanks,
Phantom
Back to top
View user's profile Send private message
a_seshu
Beginner


Joined: 30 Sep 2004
Posts: 16
Topics: 4
Location: Chennai

PostPosted: Mon Oct 24, 2005 1:11 pm    Post subject: Reply with quote

Use a read only plan
_________________
I dont think I would ever stop learning. - Seshu.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Tue Oct 25, 2005 6:39 am    Post subject: Reply with quote

Start tablespace with acces type = ut / utility only.

Result of update, insert, read is of course negative sql code ......
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