View previous topic :: View next topic |
Author |
Message |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Thu Mar 04, 2004 9:06 pm Post subject: Effect of column expansion on pgms using the DB2 tbl or view |
|
|
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 |
|
|
Glenn Beginner
Joined: 23 Mar 2003 Posts: 56 Topics: 3
|
Posted: Thu Mar 04, 2004 10:10 pm Post subject: |
|
|
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 |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Fri Mar 05, 2004 8:42 am Post subject: |
|
|
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 |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Fri Mar 05, 2004 9:22 am Post subject: |
|
|
Hi guys,
Thanx for the quick responses.
Another related question, if you don |
|
Back to top |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Fri Mar 05, 2004 9:36 am Post subject: |
|
|
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 |
|
|
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Fri Mar 05, 2004 10:03 am Post subject: |
|
|
Hi Suresh,
Now I've got it!
Thank you, and thank you, Glenn for your help.
Jack |
|
Back to top |
|
|
|
|