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
 
LIMITKEY col in SYSTABLEPART - Table Controlled Partitioning

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

New User


Joined: 10 Aug 2007
Posts: 38
Location: Chicago

PostPosted: Thu Jan 15, 2009 10:41 pm    Post subject: LIMITKEY col in SYSTABLEPART - Table Controlled Partitioning
Reply with quote

Hello:

I have just created or rather changed an Index Controlled Partitioning to Table Controlled Partitioning by dropping partitioning index. And I expected the limit keys to be as below.

Code:
---------+---------+---------+---------+---------+---------+---------+---------
TSNAME                    DBNAME                    LIMITKEY
---------+---------+---------+---------+---------+---------+---------+---------
TABLESPC                  DATABASE                   'FM '
TABLESPC                  DATABASE                   'ZZZ'


For, my CREATE INDEX statement was like this before I decided to drop, in order to change PARTIONING TO Table Controlled...

Code:
CREATE TYPE 2 UNIQUE INDEX TST.TESTINDX
       ON TST.TEST_TABLE

       (COL_FIRST                       ASC
       ,COL_SECOND                   ASC
   .
   .
   .
       ,COL_LAST                  ASC  )
       CLUSTER
  (PARTITION 1    ENDING AT ('FM ')
                  USING STOGROUP SYSDEFLT
                        PRIQTY 720
                        SECQTY 720
                        ERASE NO
                  FREEPAGE 0
                  PCTFREE 15
  ,PARTITION 2    ENDING AT ('ZZZ')
                  USING STOGROUP SYSDEFLT
                        PRIQTY 720
                        SECQTY 720
                        ERASE NO
                  FREEPAGE 0
   .
   .
   .


After dropping this INDEX I received a warning 20272 CODE (this is expected) saying the tablespace has been converted to Table-Controlled Partitioning instead of Index-Controlled Partitioning.

Now, I try to look at the limit keys in the catalog table here is what I see.

Code:
---------+---------+---------+---------+---------+---------+---------+---------
TSNAME                    DBNAME                    LIMITKEY
---------+---------+---------+---------+---------+---------+---------+---------
TABLESPC                  DATABASE                   'FM '
TABLESPC                  DATABASE                   MAXVALUE,MAXVALUE,M


Does anyone have an idea why is it MAXVALUE,MAXVALUE... instead of 'ZZZ'???

DB2 V8 NFM - z/OS

Please let me know if I owe you any more information.
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Sat Jan 17, 2009 6:16 pm    Post subject:
Reply with quote

Dinesh,

From the manuals
Quote:
After the conversion to table-controlled partitioning, DB2 changes the existing high-limit key value for non-large table spaces to the highest value for the key. Beginning in Version 8, DB2 enforces the high-limit key value. By default, DB2 does not put the last partition of the table space into a REORG-pending (REORP) state


Sushanth
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 Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

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