<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SGPLOT replacing upper grid value with ** in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-replacing-upper-grid-value-with/m-p/634063#M23873</link>
    <description>Did you try :&lt;BR /&gt;&lt;BR /&gt;FORMAT  pct  best32.  ?</description>
    <pubDate>Mon, 23 Mar 2020 11:01:21 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-03-23T11:01:21Z</dc:date>
    <item>
      <title>SGPLOT replacing upper grid value with **</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-replacing-upper-grid-value-with/m-p/634060#M23872</link>
      <description>&lt;P&gt;I have a simple stacked bar chart reporting gender by year and the yaxis grid value is 0-100 by 20. The 100 is being replaced by two asterisks no matter what I do to adjust the text size, graph size, etc. I have an identical graph reporting race by year (white vs. black vs. other) - all configurations are identical with the exception of group, and this issue does not appear. I think it has something do with the space between the y values and the axis label. I am running 9.4 TS1M4 on a 32-bit W10 machine. Code is below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nocenter; 
ods graphics / noborder width=1500 height=900;
ods proclabel="Suppression Cohort: Deaths by Year - Gender";
ods noproctitle;
ods listing gpath="%sysfunc(getoption(work))";

proc sgplot data=dyrsuppgenderfreq noborder nowall ;
  vbar dthyearprint / group=gender response=pct barwidth=.50 seglabel seglabelattrs=(size=9 family=arial color=white weight=bold) baselineattrs=(thickness=0)
    dataskin=matte;
  xaxis values=('&amp;lt; 2010' '2010-present') valueattrs=(size=12 family=arial) label="Year of Autopsy" labelattrs=(size=17 family=arial);
  yaxis valueattrs=(size=16 family=arial) label='% Particpant Deaths' labelattrs=(size=17 family=arial) GRID VALUES = (0 TO 100 BY 20);

keylegend / title=""
              titleattrs=(Size=14) 
              valueattrs=(Family=Arial Size=14);
run;
title;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbarwick_0-1584959228763.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37213iC3F96738F3080D88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbarwick_0-1584959228763.png" alt="lbarwick_0-1584959228763.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is the code for the race by year graph:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nocenter; 
ods graphics / noborder width=1500 height=900;
ods proclabel="Suppression Cohort: Deaths by Year - Race";
ods noproctitle;
ods listing gpath="%sysfunc(getoption(work))";

proc sgplot data=dyrsuppracefreq noborder nowall ;
  vbar dthyearprint / group=race response=pct barwidth=.50 seglabel seglabelattrs=(size=9 family=arial color=white weight=bold) baselineattrs=(thickness=0)
    dataskin=matte;
  xaxis values=('&amp;lt; 2010' '2010-present') valueattrs=(size=12 family=arial) label="Year of Autopsy" labelattrs=(size=17 family=arial);
  yaxis valueattrs=(size=16 family=arial) label='% Participant Deaths' labelattrs=(size=17 family=arial) GRID VALUES = (0 TO 100 BY 20);

keylegend / title=""
              titleattrs=(Size=14) 
              valueattrs=(Family=Arial Size=14);
run;
title;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV id="tinyMceEditorlbarwick_4" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorlbarwick_10" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-03-23 062925.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37214i7C5424EC152C1273/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-03-23 062925.png" alt="Annotation 2020-03-23 062925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 10:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-replacing-upper-grid-value-with/m-p/634060#M23872</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-23T10:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT replacing upper grid value with **</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-replacing-upper-grid-value-with/m-p/634063#M23873</link>
      <description>Did you try :&lt;BR /&gt;&lt;BR /&gt;FORMAT  pct  best32.  ?</description>
      <pubDate>Mon, 23 Mar 2020 11:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-replacing-upper-grid-value-with/m-p/634063#M23873</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-03-23T11:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT replacing upper grid value with **</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-replacing-upper-grid-value-with/m-p/634185#M23874</link>
      <description>&lt;P&gt;Most of the time a displayed set of ** for a numeric variable means that the current format that is assigned to the variable has issues with attempting to display the value.&lt;/P&gt;
&lt;P&gt;The following example shows what happens when you try to force a 3 digit value into 2 display digits.&lt;/P&gt;
&lt;PRE&gt;Data example;
   x=100;
run;
proc print data=example;
   format x f2.;
run;&lt;/PRE&gt;
&lt;P&gt;The BEST formats sometimes can get around the space limit by shifting to scientific notation but still need at least 3 characters. If you use a fixed field like the F format (or simple 2.) there is not enough room. Also if you try to display dates past year 9999 you run into issues with the formats not wanting to display the year and you get *********** type results. Most people don't worry about the date limitation though on the high end.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 17:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SGPLOT-replacing-upper-grid-value-with/m-p/634185#M23874</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-23T17:26:24Z</dc:date>
    </item>
  </channel>
</rss>

