- width = lcmd->last == LONG_MAX ? 5 : intlog10 (lcmd->last);
- fmt = fmt_for_output (FMT_F, width, 0);
- col = caseproto_get_n_widths (casereader_get_proto (group)) - 1;
+ struct pivot_dimension *variables = pivot_dimension_create (
+ table, PIVOT_AXIS_COLUMN, N_("Variables"));
+ for (int i = 0; i < lcmd->n_variables; i++)
+ pivot_category_create_leaf (
+ variables->root, pivot_value_new_variable (lcmd->v_variables[i]));