create cursor myCursor ; (cust_code c(6), Descrp c(10), B1 c(10), ; B2 c(10), B3 c(10), b4 c(10), b5 c(10)) index on cust_code+Descrp tag cust_code lnSize = fsize("b1") select OriginalTable scan if !seek(cust_code,"myCursor", "cust_code") insert into myCursor ; (cust_code , Descrp) values ; (OriginalTable.cust_code, "Model") insert into myCursor ; (cust_code , Descrp) values ; (OriginalTable.cust_code, "Interest") insert into myCursor ; (cust_code , Descrp) values ; (OriginalTable.cust_code, "Carnode") endif lcField = mthcode =seek(cust_code+"Model","myCursor", "cust_code") replace (lcField) ; with padl(OriginalTable.model,tnSize," "); in "myCursor" =seek(cust_code+"Interest","myCursor", "cust_code") replace (lcField) ; with padl(OriginalTable.Interest,tnSize," ") ; in "myCursor" =seek(cust_code+"Carnode","myCursor", "cust_code") replace (lcField) ; with typeconvert(OriginalTable.Carnode) in "myCursor" endscan select myCursorCetin