Hi,
I was required in my scripts to insert null values for some column but because of number of columns were large, i thought to write a function that will give me such values. But somehow i was not able to find a direct way to find that null values for columns of table.
Temporarily i wrote following, not sure if it is correct:
;NullValDictionary:b
gx
hi
je
fc
sp
md
zn
uv
t!(0b;0Ng;0x00;0Nh;0N;0Nj;0Ne;0n;" ";`;0Np;0Nm;0Nd;0Nz;0Nn;0Nu;0Nv;0Nt)
;AddNullValueBaseOnCol:{[tbll;startCol]
;metaCol:0!meta tbll
;cnt:count metaCol
; {NullValDictionary$x
t} each metaCol (startCol-1)+til cnt-startCol-1
}
/ some existing table
;tbl:(a:1 2 3 4 5;b:a
bc
d`e;c:“abcde”)
/ following return an array of the null values from the column number 2
;AddNullValueBaseOnCol[tbl;2]
Please let me know if any better/right way.