Peter, whatever it is worth, the current build on BGV (Bill Gates Virus) appears to be working:
C:\Temp>db2 connect to sample
Database Connection Information
Database server = DB2/NT64 12.1.3.0
SQL authorization ID = DB2ADMIN
Local database alias = SAMPLE
C:\Temp>db2 create tablespace tbsp1 managed by automatic storage
DB20000I The SQL command completed successfully.
C:\Temp>db2 create tablespace tbsp2 managed by automatic storage
DB20000I The SQL command completed successfully.
C:\Temp>db2 create tablespace tbsp3 managed by automatic storage
DB20000I The SQL command completed successfully.
C:\Temp>db2 create tablespace tbsi1 managed by automatic storage
DB20000I The SQL command completed successfully.
C:\Temp>db2 create tablespace tbsi2 managed by automatic storage
DB20000I The SQL command completed successfully.
C:\Temp>db2 create tablespace tbsi3 managed by automatic storage
DB20000I The SQL command completed successfully.
C:\Temp>db2 -tvf junk.db2
SET CURRENT SCHEMA db2admin
DB20000I The SQL command completed successfully.
CREATE TABLE beleg_rpt ( id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1 CACHE 10 ) , mandantid INT NOT NULL, cat CHAR(1) NOT NULL , ts DATE NOT NULL DEFAULT CURRENT DATE ) INDEX IN tbsi1 PARTITION BY RANGE(cat ) ( PARTITION b1 STARTING 'A' ENDING 'A' IN tbsp1 INDEX IN tbsi1 , PARTITION b2 STARTING 'B' ENDING 'B' IN tbsp2 INDEX IN tbsi2 , PARTITION b3 STARTING 'C' ENDING 'C' IN tbsp3 INDEX IN tbsi3 ) COMPRESS YES ADAPTIVE
DB20000I The SQL command completed successfully.
CREATE UNIQUE INDEX beleg_rpt_un ON beleg_rpt(id ) NOT PARTITIONED
DB20000I The SQL command completed successfully.
ALTER TABLE db2admin.beleg_rpt ADD CONSTRAINT beleg_rpt_pk PRIMARY KEY ( id )
SQL0598W Existing index "DB2ADMIN.BELEG_RPT_UN" is used as the index for the
primary key or a unique key. SQLSTATE=01550
CREATE INDEX beleg_rpt_ix01 ON beleg_rpt(mandantid) NOT PARTITIONED
DB20000I The SQL command completed successfully.
CREATE INDEX beleg_rpt_ix03 ON beleg_rpt(cat) NOT PARTITIONED
DB20000I The SQL command completed successfully.
CREATE INDEX beleg_rpt_ix02 ON beleg_rpt(cat, mandantid) NOT PARTITIONED
DB20000I The SQL command completed successfully.
C:\Temp>db2 "REORG TABLE DB2ADMIN.BELEG_RPT INPLACE INDEX beleg_rpt_ix03 ON DATA PARTITION b1 "
DB20000I The REORG command completed successfully.
DB21024I This command is asynchronous and may not be effective immediately.
Db2 level is:
C:\Temp>db2level
DB21085I This instance or install (instance name, where applicable: "DB2")
uses "64" bits and DB2 code release "SQL12013" with level identifier
"02040110".
Informational tokens are "DB2 v12.1.3000.251", "s2507231221",
"DYN2507231221WIN64", and Fix Pack "0".
Product is installed at "C:\V12.1.3\SQLLIB" with DB2 Copy Name "DB2V12R1M3F0".