CREATE COLUMN TABLE "IMCYC"."ADO2" ("DocEntry" INTEGER CS_INT NOT NULL , "LineNum" INTEGER CS_INT NOT NULL , "GroupNum" INTEGER CS_INT NOT NULL , "ExpnsCode" INTEGER CS_INT, "LineTotal" DECIMAL(21,6) CS_FIXED, "TotalFrgn" DECIMAL(21,6) CS_FIXED, "TotalSumSy" DECIMAL(21,6) CS_FIXED, "PaidToDate" DECIMAL(21,6) CS_FIXED, "PaidFC" DECIMAL(21,6) CS_FIXED, "PaidSys" DECIMAL(21,6) CS_FIXED, "ObjType" NVARCHAR(20) NOT NULL , "LogInstanc" INTEGER CS_INT DEFAULT 0 NOT NULL , "TaxStatus" CHAR(1) CS_FIXEDSTRING DEFAULT 'Y', "VatGroup" NVARCHAR(8), "VatPrcnt" DECIMAL(21,6) CS_FIXED, "VatSum" DECIMAL(21,6) CS_FIXED, "VatSumFrgn" DECIMAL(21,6) CS_FIXED, "VatSumSy" DECIMAL(21,6) CS_FIXED, "DedVatSum" DECIMAL(21,6) CS_FIXED, "DedVatSumF" DECIMAL(21,6) CS_FIXED, "DedVatSumS" DECIMAL(21,6) CS_FIXED, "IsAcquistn" CHAR(1) CS_FIXEDSTRING DEFAULT 'N', "TaxCode" NVARCHAR(8), "TaxType" CHAR(1) CS_FIXEDSTRING DEFAULT 'Y', "VatApplied" DECIMAL(21,6) CS_FIXED, "VatAppldFC" DECIMAL(21,6) CS_FIXED, "VatAppldSC" DECIMAL(21,6) CS_FIXED, "EquVatPer" DECIMAL(21,6) CS_FIXED, "EquVatSum" DECIMAL(21,6) CS_FIXED, "EquVatSumF" DECIMAL(21,6) CS_FIXED, "EquVatSumS" DECIMAL(21,6) CS_FIXED, "lineVat" DECIMAL(21,6) CS_FIXED, "lineVatlF" DECIMAL(21,6) CS_FIXED, "lineVatS" DECIMAL(21,6) CS_FIXED, "WtLiable" CHAR(1) CS_FIXEDSTRING, "BaseMethod" CHAR(1) CS_FIXEDSTRING, "Stock" CHAR(1) CS_FIXEDSTRING, "LstPchPrce" CHAR(1) CS_FIXEDSTRING, "AnalysRpt" CHAR(1) CS_FIXEDSTRING, "BaseGroup" INTEGER CS_INT DEFAULT -1, "Status" CHAR(1) CS_FIXEDSTRING DEFAULT 'O', "TrgGroup" INTEGER CS_INT DEFAULT -1, "VisOrder" INTEGER CS_INT, "FixCurr" NVARCHAR(3), "VatDscntPr" DECIMAL(21,6) CS_FIXED, "OcrCode" NVARCHAR(8), "OcrCode2" NVARCHAR(8), "OcrCode3" NVARCHAR(8), "OcrCode4" NVARCHAR(8), "OcrCode5" NVARCHAR(8), "Project" NVARCHAR(20), "VatGrpSrc" CHAR(1) CS_FIXEDSTRING DEFAULT 'N', "DrawnTotal" DECIMAL(21,6) CS_FIXED, "DrawnFC" DECIMAL(21,6) CS_FIXED, "DrawnSC" DECIMAL(21,6) CS_FIXED, PRIMARY KEY INVERTED VALUE ("DocEntry", "LineNum", "GroupNum", "LogInstanc", "ObjType")) UNLOAD PRIORITY 5  AUTO MERGE 