-- Licensed Materials - Property of IBM
--
-- BI and PM: CM
--
-- (C) Copyright IBM Corp. 2010
--
-- US Government Users Restricted Rights - Use, duplication or disclosure
-- restricted by GSA ADP Schedule Contract with IBM Corp.

CREATE TABLE CMARCHIVESTATUS (
	CMID			integer not null,
	ARCHSTAT		smallint default 0 not null, 
	CONSTRAINT PK_CMARCHIVESTATUS PRIMARY KEY (CMID)
) IN CMSCRIPT_CREATE_IN;

CREATE  UNIQUE  INDEX PK_CMARCHIVESTATUS ON CMARCHIVESTATUS (CMID) USING STOGROUP CMSCRIPT_STOGROUP;

insert into CMARCHIVESTATUS (CMID) select CMID from CMOBJECTS where CLASSID in (179);

insert into CMARCHIVESTATUS (CMID) select CMID from CMOBJECTS where CLASSID in (27);