Hi ,
I am using below to load a flat file to KDB . It loads succesfully, however is loading the first row of file as column names . I want to define the columns seperately instead.
q)width:“?79?1?3?8?8?8?2?12?28?2?20?181?12?7?9?12?46?105?5?113?1?861?4?530?10?10?5?”
q)types:“SSSSSSSSSSSSSSSSSSSSSSSSSSS”
q)m:(types;width) 0:`testfile
If I try definiong the columns , getting below error
q)names:`Dummy1`BuySell`Dummy2`Dummy3`TradeDate`MaturityDate`PriceFractional`Price`Dummy5`QtyFractional`Qty`Dummy6`Isin`Dummy7`Cusip`Dummy8`TradeId`Dummy9`Timestamp`Dummy10`CancelDueToAmend`Dummy11`TransactionType`Dummy12`OrignatingId`Origin`Dummy13
<font color='"#000000"'><span style='"font-size:'>q)m1:flip names!(types;width) 0:`testtomefile<br></span></font>
'length
THanks
Suraj