+ return CMD_SUCCESS;
+}
+
+/* Dumps out the values of all the split variables for the case C. */
+void
+output_split_file_values (const struct dataset *ds, const struct ccase *c)
+{
+ const struct dictionary *dict = dataset_dict (ds);
+ size_t n_vars = dict_get_n_splits (dict);
+ if (n_vars == 0)
+ return;
+
+ struct pivot_table *table = pivot_table_create (N_("Split Values"));
+ pivot_dimension_create (table, PIVOT_AXIS_COLUMN, N_("Value"),
+ N_("Value"));
+ struct pivot_dimension *variables = pivot_dimension_create (
+ table, PIVOT_AXIS_ROW, N_("Variable"));
+ variables->root->show_label = true;
+
+ for (size_t i = 0; i < n_vars; i++)
+ {
+ const struct variable *v = dict_get_split_vars (dict)[i];
+ int row = pivot_category_create_leaf (variables->root,
+ pivot_value_new_variable (v));
+
+ pivot_table_put2 (table, 0, row,
+ pivot_value_new_var_value (v, case_data (c, v)));
+ }
+
+ pivot_table_submit (table);