Send the DATA step output to the open destinations, specify a label for the output object, and specify the variables to write to the data component and the order in which to write them. The combination of the fileref PRINT and the ODS option in the FILE statement sends the results of the DATA step to ODS. The LISTING, the HTML, and the PRINTER destinations are open. Because no table definition is specified, ODS uses the default DATA step definition.
The OBJECTLABEL= suboption specifies the label `1996 Grain Production' to the output object. This label appears in the Results folder and in the HTML contents file.
The VARIABLES= suboption specifies the variables to write to the data component and the order in which to write them.
The LABEL= suboption specifies a label for the variable TYPE. The label specified here takes precedence over the LABEL statement assignment that was made previously in the DATA step, so it is used as the column heading for TYPE.
The FORMAT= suboption assigns a format for the variable KILOTONS.
file print ods= (objectlabel='1996 Grain Production' variables=(country type(label='Type of Grain') kilotons(format=comma12.)) );