<?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: proc sgplot-using macro variables to set min and max in values option in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611653#M19233</link>
    <description>&lt;P&gt;This means that your YAXIS is getting tick value 148-174. Earlier, you said you wanted 148-175. To get that, you will need to round up the max value in PROC SQL before you assign it to the macro variable. Try this and see if it works for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;min(varchk1),round(max(varchk1),1)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:minv1, :maxv1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;range_limit1v2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 17:05:58 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-12-13T17:05:58Z</dc:date>
    <item>
      <title>proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611603#M19224</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a question about proc sgplot. I want to use macro variables to set the range of proc sgplot in the values option of the YAXIS statement,e.g., values=(&amp;amp;minv. to &amp;amp;maxv. by 1). When I do this the data plotted on the yaxis of the plot are off from the actual data values, usually by about $1. When I replace the macro variables in the values option with actual numbers, e.g., values=(140 to 175 by 1) then the plotted y-axis values match the data. Has this been seen before? Is there a resolution? I tried valueshint option but this did not seem to work.&lt;/P&gt;&lt;P&gt;I instead tried min=&amp;amp;minv. max=&amp;amp;maxv. and this will work, however, I have not been able to find a way to set the plotted incremental values on the yaxis,but these go by a default to values larger than $1. I tried INTERVAL option,for &amp;nbsp;this case, but it does not seem to work in the case of continuous numerical values, just categorical ones like "week_date" [say each Monday date&amp;nbsp;for a series of weeks].&lt;/P&gt;&lt;P&gt;I'm not certain if the resolution of this is easy or not. I have looked on the internet. Any ideas of how to possibly resolve this?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611603#M19224</guid>
      <dc:creator>ericoneill</dc:creator>
      <dc:date>2019-12-13T15:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611608#M19225</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I have a question about proc sgplot. I want to use macro variables to set the range of proc sgplot in the values option of the YAXIS statement,e.g., values=(&amp;amp;minv. to &amp;amp;maxv. by 1). When I do this the data plotted on the yaxis of the plot are off from the actual data values, usually by about $1.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show us the code where the macro variables are created and the entire PROC SGPLOT (not just the YAXIS statement) code. Show us what happens. Include a screen capture of the plot in your reply (not as an attachment).&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611608#M19225</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-13T15:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611617#M19226</link>
      <description>Hi Paige,&lt;BR /&gt;&lt;BR /&gt;I don't think I can post possibly proprietary information. I am just curious if replacing literal numeric values in&lt;BR /&gt;&lt;BR /&gt;Values,e.g., VALUES=(140 to 175 by 1) with VALUES=(&amp;amp;min. to &amp;amp;max. by 1) could cause a mismatch between&lt;BR /&gt;&lt;BR /&gt;a sasdata set and plotted values in proc sgplot.&lt;BR /&gt;&lt;BR /&gt;Thank you for commenting,&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611617#M19226</guid>
      <dc:creator>ericoneill</dc:creator>
      <dc:date>2019-12-13T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611618#M19227</link>
      <description>&lt;P&gt;Just to be sure things a substituting the way you think they are, set OPTIONS MPRINT; so that you can see the statement in the log with the values substituted. Let us know what you see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611618#M19227</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-12-13T15:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611620#M19228</link>
      <description>&lt;P&gt;The macro variables are generated this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; min(varchk1),max(varchk1) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; :minv1, :maxv1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; range_limit1v2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%Put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;minv1.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%Put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;maxv1.;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611620#M19228</guid>
      <dc:creator>ericoneill</dc:creator>
      <dc:date>2019-12-13T15:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611628#M19229</link>
      <description>Hi Dan,&lt;BR /&gt;&lt;BR /&gt;Here is the log. It appears to be resolving properly:&lt;BR /&gt;&lt;BR /&gt;[cid:image001.png@01D5B194.7A2AF750]&lt;BR /&gt;&lt;BR /&gt;Thanks for interest in issue,&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Dec 2019 16:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611628#M19229</guid>
      <dc:creator>ericoneill</dc:creator>
      <dc:date>2019-12-13T16:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611631#M19230</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;It listed as:&lt;/P&gt;&lt;P&gt;467 YAXIS valuesformat=data GRID LABEL="CAD/CWT" VALUES=(&amp;amp;minv. to &amp;amp;maxv. by 1) valueshint ;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable MINV resolves to 148&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable MAXV resolves to 174.21&lt;/P&gt;&lt;P&gt;Apparently, the macro vaiables resolved.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 16:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611631#M19230</guid>
      <dc:creator>ericoneill</dc:creator>
      <dc:date>2019-12-13T16:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611638#M19231</link>
      <description>&lt;P&gt;I think that the decimal part of MAXV might be what's causing your issue, since it is not evenly divisible by 1. To verify this, use the TMPLOUT option on your SGPLOT statement and see the list of values generated for TICKVALUELIST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=whatever TMPLOUT="mygraph.sas";&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 16:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611638#M19231</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-12-13T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611643#M19232</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;This is what I am getting. Not certain of interpretation:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;template&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;define&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;statgraph&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; sgplot;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;begingraph&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; / collation=binary subpixel=on;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;EntryTitle&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;"AFSC versus CanFax Forecasted Prices for WLPIP Fed Cattle"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; /;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;layout&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;overlay&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x2axisopts&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(labelFitPolicy=Split) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;xaxisopts&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=( Label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"Expiration Date"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; labelFitPolicy=Split type=linear linearopts=( tickvaluelist=( &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;13&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;14&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;15&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;16&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;17&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;18&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;19&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;20&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;21&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;22&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;23&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;24&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;25&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;26&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;27&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;28&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;29&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;30&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;31&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;32&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;33&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;34&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;35&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;36&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;37&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; ) viewmin=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; viewmax=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;37&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; ) griddisplay=on ) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;yaxisopts&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=( Label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"CAD/CWT"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; type=linear linearopts=( tickvaluelist=( &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;148&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;149&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;150&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;151&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;152&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;153&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;154&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;155&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;156&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;157&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;158&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;159&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;160&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;161&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;162&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;163&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;164&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;165&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;166&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;167&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;168&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;169&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;170&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;171&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;172&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;173&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;174&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; ) TickValueFormat=DATA ) griddisplay=on ) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x2axisopts&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=(labelFitPolicy=Split);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;BandPlot&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;X&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Wks_to_Exp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LimitUpper&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=positive1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LimitLower&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=negative1 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DataTransparency&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0.75&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;FillAttrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=GraphConfidence(Color=CXFF0000) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LegendLabel&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"Band"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"BAND"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;BandPlot&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;X&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Wks_to_Exp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LimitUpper&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=positive2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LimitLower&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=negative2 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DataTransparency&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0.75&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;FillAttrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=GraphConfidence(Color=CX0000FF) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LegendLabel&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"Band"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"BAND1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;SeriesPlot&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;X&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Wks_to_Exp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=AFSC_Forecasted_Price / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;primary&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=true &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Lineattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=( Color=CX0000FF Pattern=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; Thickness=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LegendLabel&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"AFSC"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"A"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;SeriesPlot&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;X&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Wks_to_Exp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Canfax_Forecasted_Price / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Lineattrs&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=( Color=CXFF0000 Pattern=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; Thickness=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LegendLabel&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"CanFax"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"B"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DiscreteLegend&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;"A"&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;"B"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Location&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=Outside &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;valign&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=bottom;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;endlayout&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;endgraph&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Eric&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 16:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611643#M19232</guid>
      <dc:creator>ericoneill</dc:creator>
      <dc:date>2019-12-13T16:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611653#M19233</link>
      <description>&lt;P&gt;This means that your YAXIS is getting tick value 148-174. Earlier, you said you wanted 148-175. To get that, you will need to round up the max value in PROC SQL before you assign it to the macro variable. Try this and see if it works for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;min(varchk1),round(max(varchk1),1)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:minv1, :maxv1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;range_limit1v2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 17:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611653#M19233</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-12-13T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot-using macro variables to set min and max in values option</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611662#M19234</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp; After checking about 7 points they now appear to be matching as far as I can discern by reading the plot.&lt;/P&gt;&lt;P&gt;Thank you for finding this solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Eric&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 17:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-using-macro-variables-to-set-min-and-max-in-values/m-p/611662#M19234</guid>
      <dc:creator>ericoneill</dc:creator>
      <dc:date>2019-12-13T17:36:07Z</dc:date>
    </item>
  </channel>
</rss>

