statement.executeOlapQuery(
"SELECT {[store].[USA]} ON COLUMNS , {[Account].[1000]} ON ROWS\n"
+ "FROM [Budget]");
// We use the utility formatter.
RectangularCellSetFormatter formatter =
new RectangularCellSetFormatter(false);
// Print out.
PrintWriter writer = new PrintWriter(System.out);
formatter.format(cellSet, writer);
writer.flush();
statement.close();
connection.close();
}