CREATE COLUMN TABLE "SBODEMOPT"."DAR4" ("ArcEntry" INTEGER CS_INT NOT NULL , "Series" INTEGER CS_INT, "Line_ID" INTEGER CS_INT NOT NULL , "DocType" NVARCHAR(20), "DocNum" INTEGER CS_INT, "DocAbs" INTEGER CS_INT, "Total" DECIMAL(21,6) CS_FIXED, "RefDate" LONGDATE CS_LONGDATE, "Type" NVARCHAR(1) DEFAULT 'R', "Remarks" NVARCHAR(100), "KeySeg1" NVARCHAR(15), "KeySeg2" NVARCHAR(15), "KeySeg3" NVARCHAR(15), "KeySeg4" NVARCHAR(15), "KeySeg5" NVARCHAR(15), "KeySeg6" NVARCHAR(15), "KeySeg7" NVARCHAR(20), "KeySeg8" NVARCHAR(15), "KeySeg9" NVARCHAR(15), "KeySeg10" NVARCHAR(15), PRIMARY KEY ("ArcEntry", "Line_ID")) UNLOAD PRIORITY 5  AUTO MERGE ;
ALTER TABLE "SBODEMOPT"."DAR4" WITH PARAMETERS ('CONCAT_ATTRIBUTE'=('$DocAbs$DocType$','DocAbs','DocType'));
CREATE INDEX "DAR4_ABS_TYPE" ON "SBODEMOPT"."DAR4" ( "DocAbs" ASC, "DocType" ASC )