Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
CONVERT DECIMAL DATATYPE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
premkumar82

New User


Joined: 24 Feb 2006
Posts: 8
Location: chennai

PostPosted: Tue Jun 20, 2006 6:50 pm    Post subject: CONVERT DECIMAL DATATYPE
Reply with quote

my requirement is

increase decimal (7,2) to decimal (11,2) IN DB2

i ve used both
1)ALTER TABLE DSN8810.EMP ALTER COLUMN EDLEVEL SET DATATYPE DECIMAL(11,2); does't work

2)ALTER TABLE DSN8810.EMP MODIFY EDLEVEL DECIMAL(11,2); does't work

ANYBODY HELP ME
ANY CORRECT QUERY
Back to top
View user's profile Send private message

vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Tue Jun 20, 2006 7:10 pm    Post subject:
Reply with quote

In Alter command only used to add columns.
I think,It is not possible in db2

Thanks,
vy
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Tue Jun 20, 2006 7:57 pm    Post subject:
Reply with quote

Please try this
Syntax

ALTER TABLE <tablename>
ALTER COLUMN <columnname>
SET DATATYPE <newdatatype> ;



Ex:

ALTER TABLE CUSTOMER COLUMN ADDRESS SET DATA TYPE CHAR (55)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us