Close the LISTING destination and open the DOCUMENT destination. The NAME= option creates an ODS document named Class.
ods listing close; ods document name=class;