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

Alter a VARCHAR column


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

New User


Joined: 01 Mar 2010
Posts: 27
Location: Israel

PostPosted: Tue Mar 15, 2011 3:04 am
Reply with quote

Here is my issue:
I altered a CHAR(200) row to VARCHAR(700), by an ALTER command, issued via BMC CATALOG MANAGER. It was successful.
When I tried to ALTER back to CHAR(200) I got an SQLCODE (don't remember) with explanation the column is not the right type.
Any suggestion how to restore column's old chracteristics without a DROP+CREATE?
Thanks in advance,
Haim Zeevi
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Mar 15, 2011 2:13 pm
Reply with quote

V8,V9 manual wrote:
In general, DB2® can alter a data type if the data can be converted from the old type to the new type without truncation or without losing arithmetic precision.
Back to top
View user's profile Send private message
haimzeevi

New User


Joined: 01 Mar 2010
Posts: 27
Location: Israel

PostPosted: Tue Mar 15, 2011 5:17 pm
Reply with quote

Thanks Guy.
Then DROP/CREATE remained.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts DROP & ALTER PARTITION-PBR DB2 0
No new posts first column truncated in search result IBM Tools 13
No new posts Split a record with data in a differe... DFSORT/ICETOOL 8
Search our Forums:

Back to Top