<?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: Attribute maps in SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418909#M14438</link>
    <description>&lt;P&gt;If you do not define the length of a character variable with an informat, length or attrib statement prior to input the default length will be 8 characters. So your markersymbol values are only 8 characters long and cannot hold some of the text specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&lt;/P&gt;
&lt;PRE&gt;data work.attrmap;
   id="moy";
   markercolor="black";
   length markersymbol $ 15;
   input value $ markersymbol $;

datalines;
JAN Circle
FEB Diamond
MAR Hash
APR Plus
MAY Square
JUN Star
JUL Triangle
AUG TriangleDown
SEP CircleFilled
OCT DiamondFilled
NOV SquareFilled
DEC StarFilled
;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Dec 2017 18:30:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-12-06T18:30:27Z</dc:date>
    <item>
      <title>Attribute maps in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418897#M14436</link>
      <description>&lt;P&gt;I get this error when attempting to create and use an attribute map in PROC SGPANEL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 772-580: Syntax error: expecting a constant or a dynamic. &amp;nbsp;Any assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;data attrmap;&lt;BR /&gt;id="moy";&lt;BR /&gt;markercolor="black";&lt;BR /&gt;input value $ markersymbol $;&lt;BR /&gt;datalines;&lt;BR /&gt;JAN Circle&lt;BR /&gt;FEB Diamond&lt;BR /&gt;MAR Hash&lt;BR /&gt;APR Plus&lt;BR /&gt;MAY Square&lt;BR /&gt;JUN Star&lt;BR /&gt;JUL Triangle&lt;BR /&gt;AUG TriangleDown&lt;BR /&gt;SEP CircleFilled&lt;BR /&gt;OCT DiamondFilled&lt;BR /&gt;NOV SquareFilled&lt;BR /&gt;DEC StarFilled&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics / attrpriority=none;&lt;/P&gt;&lt;P&gt;proc sgpanel data=two dattrmap=attrmap;&lt;BR /&gt;panelby site/columns=3;&lt;BR /&gt;scatter x=tn y=lnvi/group=mo attrid=moy;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 17:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418897#M14436</guid>
      <dc:creator>hbunderw</dc:creator>
      <dc:date>2017-12-06T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute maps in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418904#M14437</link>
      <description>&lt;P&gt;Your variables are getting truncated in the ATTRMAP. Make sure the length is long enough.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418904#M14437</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-06T18:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute maps in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418909#M14438</link>
      <description>&lt;P&gt;If you do not define the length of a character variable with an informat, length or attrib statement prior to input the default length will be 8 characters. So your markersymbol values are only 8 characters long and cannot hold some of the text specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&lt;/P&gt;
&lt;PRE&gt;data work.attrmap;
   id="moy";
   markercolor="black";
   length markersymbol $ 15;
   input value $ markersymbol $;

datalines;
JAN Circle
FEB Diamond
MAR Hash
APR Plus
MAY Square
JUN Star
JUL Triangle
AUG TriangleDown
SEP CircleFilled
OCT DiamondFilled
NOV SquareFilled
DEC StarFilled
;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418909#M14438</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-06T18:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute maps in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418910#M14439</link>
      <description>&lt;P&gt;Thank you both. &amp;nbsp;Of course that's the correct answer. &amp;nbsp;I didn't realize that SAS still restricts character lengths to 8.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418910#M14439</guid>
      <dc:creator>hbunderw</dc:creator>
      <dc:date>2017-12-06T18:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute maps in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418912#M14440</link>
      <description>&lt;P&gt;SAS does not restrict the length of character variables to 8 characters.&amp;nbsp; However, in some cases that is the default length.&amp;nbsp; In other cases the default might be as large as 32K.&amp;nbsp; For many variables, neither is desirable, so you should set your length to something more appropriate for your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Attribute-maps-in-SGPANEL/m-p/418912#M14440</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-06T18:39:46Z</dc:date>
    </item>
  </channel>
</rss>

