IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Column length change


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tarun_bhardwaj

New User


Joined: 18 Jul 2003
Posts: 39
Location: delhi

PostPosted: Thu Apr 24, 2008 10:59 am
Reply with quote

Hi,

I know that for changing the lenght of a non-key column, we can do so without dropping the tablespace (by using ALTER TABLE). My question is that for changing the length of a key column, do we need to drop the tablespace and then recreate it using the new length of the column or can we do so without dropping the tablespace (by using ALTER TABLE)?

Looking forward to an early response. Thanks in advance.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Apr 24, 2008 11:29 am
Reply with quote

Hello,

Quote:
I need it urgently
If this is needed immediately, i suggest using the method you are already familiar with (after taking a backup). This will be much safer and should avoid any problems/surprises and will get you back up and running predictably.

Keep in mind that changing this column length may have and impact on other tables/processes that use this column.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Get RECORD LENGTH, allocated space of... CLIST & REXX 7
No new posts ISPF Table to add a new column TSO/ISPF 1
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
Search our Forums:


Back to Top