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 

Effect of column expansion on pgms using the DB2 tbl or view

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


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu Mar 04, 2004 9:06 pm    Post subject: Effect of column expansion on pgms using the DB2 tbl or view Reply with quote

Hi Folks,

If a DB2 table is changed to expand one of its columns, aside from those pgms accessing the column, do pgms accessing other fields in the table have to be recompiled and/or rebound? I did a search but didn't find anything helpful.

I'd appreciate any help you can offer.

Thanx, Jack.
Back to top
View user's profile Send private message
Glenn
Beginner


Joined: 23 Mar 2003
Posts: 56
Topics: 3

PostPosted: Thu Mar 04, 2004 10:10 pm    Post subject: Reply with quote

That's the beauty of DB2...no no changes have to be made for other columns, assuming there wasn't any funny business like redefines or anything. Always check programs closely, but no, there's no "record format" in DB2 since DB2 doesn't work in terms of records but fields.
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Fri Mar 05, 2004 8:42 am    Post subject: Reply with quote

Slade,
As Glenn stated there will be no impact on programs refrencing other columns in an application, however you need to do your DD on the application logic. If some application is just doing an Insert and the new column is not referenced it's possible to put default values(which may not be the right thing), else if the column is NOT NULL then the job can go down.

Regards
Suresh
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Fri Mar 05, 2004 9:22 am    Post subject: Reply with quote

Hi guys,

Thanx for the quick responses.

Another related question, if you don
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Fri Mar 05, 2004 9:36 am    Post subject: Reply with quote

Slade,
if the Column is declared with NULL it will be null, if its NOT NULL WITH DEFAULT it will be the default value provided, If its NOT NULL it will fail. I have not tried View row Insert. Thanks
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Fri Mar 05, 2004 10:03 am    Post subject: Reply with quote

Hi Suresh,

Now I've got it!

Thank you, and thank you, Glenn for your help.

Jack
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