Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us