The NOCENTER system option is ignored when you route graphics output to the ODS RTF and ODS TAGSETS.RTF destinations


Graphs do not appear left-justified in ODS RTF and ODS TAGSETS.RTF output when the NOCENTER system option is used.

You can work around this by applying a style template to the graphics output. The workaround below is also useful in the ODS PDF destination, where graphics output is centered even when the NOCENTER system option is specified.

You can also left-justify graphics output using the NOCENTER system option in the ODS TAGSETS.RTF destination.

options orientation=portrait nocenter;
ods path (prepend) work.templat(update);

proc template;
   define style rtf_gleft;
      parent=styles.rtf;
        class Graph / just=left;
   end;
run;

ods rtf file="rtfLeft1.rtf" style=rtf_gleft startpage=no;
ods tagsets.rtf file="tagsetsLeft1.rtf" style=rtf_gleft startpage=no;

ods graphics / width=12cm height=8cm ;
title  "AFTER using STYLE";

proc sgplot data=sashelp.cars;
   vbar cylinders;
run;

goptions hsize=12cm vsize=8cm;
proc gchart data=sashelp.cars;
   vbar cylinders;
run;
quit;

ods _all_ close;