<?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: dattrmap not working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/dattrmap-not-working/m-p/725262#M225235</link>
    <description>&lt;P&gt;Thanks for your response. I realize the mistake I made. It seems that same variable has to be used in group and attrid (atleast with same value).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 20:28:31 GMT</pubDate>
    <dc:creator>Leo9</dc:creator>
    <dc:date>2021-03-10T20:28:31Z</dc:date>
    <item>
      <title>dattrmap not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dattrmap-not-working/m-p/725251#M225229</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to create a higlow graph. I want to color the bars with different colors based on the treatment subject received.&amp;nbsp; For some reason this is not working as desired.&amp;nbsp;I first created&amp;nbsp;this dataset&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; barcol ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; id value fillcolor $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;50&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 face="Courier New" size="2" color="#0000ff"&gt;retain&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; linecolor &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"black"&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;id = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"coh"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; value = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"a"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; fillcolor = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"red"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;output&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;id = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"coh"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; value = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"b"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; fillcolor = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"green"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;output&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;id = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"coh"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; value = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"c"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; fillcolor = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"orange"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;output&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="#000080"&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;then I used this in proc sgplot statement &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;proc sgplot data=final&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; noautolegend nocycleattrs &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;dattrmap=barcol&lt;/STRONG&gt;&lt;/FONT&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;styleattrs wallcolor = lightyellow &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;highlow y=subj low=start high=end1 / highcap=acap group=coht type=bar nooutline nomissinggroup &lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;transparency=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;0.1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; name = &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'proj'&lt;/FONT&gt; &lt;FONT face="Courier New" size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;attrid = coh&lt;/FONT&gt; &lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Any suggestions ? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 19:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dattrmap-not-working/m-p/725251#M225229</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2021-03-10T19:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: dattrmap not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dattrmap-not-working/m-p/725257#M225231</link>
      <description>&lt;P&gt;What are the &lt;STRONG&gt;formatted &lt;/STRONG&gt;values of the variable Coht?&lt;/P&gt;
&lt;P&gt;If you have a default format for the variable that displays text other than 'a' 'b' 'c' then the values don't match.&lt;/P&gt;
&lt;P&gt;Or if the actual values and no custom format is assigned then 'A' is not the same as the 'a' in the dattrmap data set.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 20:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dattrmap-not-working/m-p/725257#M225231</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-10T20:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: dattrmap not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dattrmap-not-working/m-p/725262#M225235</link>
      <description>&lt;P&gt;Thanks for your response. I realize the mistake I made. It seems that same variable has to be used in group and attrid (atleast with same value).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 20:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dattrmap-not-working/m-p/725262#M225235</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2021-03-10T20:28:31Z</dc:date>
    </item>
  </channel>
</rss>

