Automatic Graphs

Because graphics are such an indispensible tool for analyzing data, the SAS 9.2 and later analytical procedures can automatically produce ODS graphics along with tabular output. To automatically produce ODS Graphics with the analytical procedures, enable ODS Graphics and run the procedure, as shown in the following example:

/* beginning in SAS 9.3, ODS Graphics is enabled by default in the windowing environment */
ods graphics on;
/* this next statement requires a SAS/STAT license */
proc reg data=sashelp.class;
  model Weight = Height;
run; quit;

In addition to other graphics output, the code above includes the following fit plot:

fit plot