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
 
Error while Creating Partition Table

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

New User


Joined: 04 Jun 2009
Posts: 30
Location: Bangalore

PostPosted: Thu Oct 18, 2012 9:36 am    Post subject: Error while Creating Partition Table
Reply with quote

Code:

CREATE TABLE DBName.TableName           
    (AGE      DECIMAL(4,0) ,   
     NAME         CHAR(4))         
       PARTITION BY RANGE (AGE)   
       (PARTITION 1 STARTING 4 ENDING 10
       IN DBName.TSpaceName );             
 

Error
Code:

SQLERROR ON   CREATE    COMMAND, PREPARE   FUNCTION                             
 RESULT OF SQL STATEMENT:                                                       
 DSNT408I SQLCODE = -199, ERROR:  ILLEGAL USE OF KEYWORD STARTING.  TOKEN ENDING WAS EXPECTED
 DSNT418I SQLSTATE   = 42601 SQLSTATE RETURN CODE                               
 DSNT415I SQLERRP    = DSNHPARS SQL PROCEDURE DETECTING ERROR                   
 DSNT416I SQLERRD    = 2  0  0  -1  106  506 SQL DIAGNOSTIC INFORMATION         
 DSNT416I SQLERRD    = X'00000002'  X'00000000'  X'00000000'  X'FFFFFFFF'  X'000



Db2 Version is 10
I have tried various other ways/example on internet. But nothing actually worked.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Oct 18, 2012 10:22 am    Post subject:
Reply with quote

why use examples on the f******* internet.

use the internet to access the manual,
which would explain the CREATE TABLE statement
which is found here
and look for partitioning-clause:

in your case, I would suggest downloading the PDF
then you would not waste time on internet suggestions.

examples are at the bottom of the first link.
You should also look at partition by growth,
since you are using db2 10.
Back to top
View user's profile Send private message
Furor

New User


Joined: 04 Jun 2009
Posts: 30
Location: Bangalore

PostPosted: Thu Oct 18, 2012 1:44 pm    Post subject: Reply to: Error while Creating Partition Table
Reply with quote

Thanks Dbz ...

Thanks Ashimer for helping me on call .. icon_razz.gif
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

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