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

Alter a null column into a not null column


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

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Wed Jul 15, 2015 3:05 pm
Reply with quote

Hi all,

I tried to alter a null column of a table into a not null column in the local server using an alter statement. The table is empty. But the query I executed is not giving the actual result.
The query I tried
Code:
ALTER TABLE DEPT1 ALTER COLUMN DEPTNO SET NOT NULL WITH DEFAULT;


the result i got is
Code:
DSNT408I SQLCODE = -104, ERROR:  ILLEGAL SYMBOL "NOT". SOME SYMBOLS THAT MIGHT
         BE LEGAL ARE: CYCLE, NOCYCLE, ORDER, NOCACHE, NOORDER, NOMINVALUE,
         NOMAXVALUE

The version I used is DB2 v8.1

Can any one help me..

Thanks in advance
Raghunathan
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7311
Location: Inside the Matrix

PostPosted: Wed Jul 15, 2015 3:47 pm
Reply with quote

I think your DB2 is out of service. Anyway, the manuals are still there. What did you try to resolve this? There's a big clue in the message about what is the SQL processor thinks is wrong with that line, but you need some research.
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Mon Jul 20, 2015 10:31 am
Reply with quote

Thanks Bill for your comments

Regards
Raghunathan
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 Column names in SYSIBM tables DB2 5
No new posts Can we Insert duplicates in Primary U... DB2 2
No new posts COnvert a column with mix of hex ,cha... DB2 5
No new posts VSAM Alter Command - Cylinder Extent ... JCL & VSAM 3
No new posts Need SQL for two latest records havin... DB2 10
Search our Forums:

Back to Top