I recently needed to convert datatable to associative array. Below is what I did
/********************************************** table to associative array ***************************************************/
dt = Current Data Table();
pe_steps = Associative Array();
ForEach( {i}, 1::ncols(dt), pe_steps[Column(dt,i) << get name] = Column(dt,i) << get values );
Show( pe_steps );
/********************************************** table to associative array ***************************************************/