One option
Names Default To Here(1);
dt = Open("$DOWNLOADS/ALIGNMENT TOOL.jmp");
// Get AL cols
al_cols = Filter Each({col_name}, dt << Get Column Names("String"),
!IsMissing(Regex(col_name, "^AL\d+"));
);
// create new collector column
new_col = dt << New Column("MAX AL", Character, Nominal);
For Each Row(dt,
max_al_idx = Loc Max(dt[Row(), al_cols]); // get idx based on max value
al_name = al_cols[max_al_idx]; // find AL name with the idx
new_col[Row()] = al_name; // set value
)
-Jarmo