I am running ZOS DB2 V9.
CREATE TABLE owner.table
(ID CHAR(10) NOT NULL,
BUSINESS CHAR(04) NOT NULL,
RECORD CHAR(02) NOT NULL,
CONSTRAINT CONSTR1_PEND
PRIMARY KEY (
ID,
BUSINESS)
)
PARTITION BY RANGE (ID(5:3))
(PARTITION 1 ENDING AT ('099'),
PARTITION 2 ENDING AT ('199'),
PARTITION 3 ENDING AT ('299'),
PARTITION 4 ENDING AT ('399'),
PARTITION 5 ENDING AT ('499'))
IN POSSIBLE.STUFF;
(ID CHAR(10) NOT NULL,
BUSINESS CHAR(04) NOT NULL,
RECORD CHAR(02) NOT NULL,
CONSTRAINT CONSTR1_PEND
PRIMARY KEY (
ID,
BUSINESS)
)
PARTITION BY RANGE (ID(5:3))
(PARTITION 1 ENDING AT ('099'),
PARTITION 2 ENDING AT ('199'),
PARTITION 3 ENDING AT ('299'),
PARTITION 4 ENDING AT ('399'),
PARTITION 5 ENDING AT ('499'))
IN POSSIBLE.STUFF;