<?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 ERROR 180-322: Statement is not valid or it is used out of proper order. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573368#M161870</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to learn the SGPLOT STYLEATTRS Statement. On trying below code (exactly copied from the URL add for reference),&amp;nbsp;I am getting "ERROR 180-322: Statement is not valid or it is used out of proper order.". I checked my syntax as well but can't figure out what is an actual issue here. Can somebody help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="n1cbs0ymiv15ogn1piopg39o6m89" class="xis-codeBlock"&gt;
&lt;PRE class="xis-code"&gt;/* Sort the data set by the group variable */
proc sort data=sashelp.class out=class;
  by age;
run;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV id="p0a0l3oeywdctln16d39syu48fgu" class="xis-codeBlock"&gt;
&lt;PRE class="xis-code"&gt;/* Generate the graph using the sorted data */
proc sgplot data=class;
  styleattrs  
     datacontrastcolors=(red green blue) 
     datalinepatterns=(dot solid);
  series x=height y=weight / group=age;
  keylegend;
run;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jul 2019 13:45:17 GMT</pubDate>
    <dc:creator>kunjgemi</dc:creator>
    <dc:date>2019-07-14T13:45:17Z</dc:date>
    <item>
      <title>ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573368#M161870</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to learn the SGPLOT STYLEATTRS Statement. On trying below code (exactly copied from the URL add for reference),&amp;nbsp;I am getting "ERROR 180-322: Statement is not valid or it is used out of proper order.". I checked my syntax as well but can't figure out what is an actual issue here. Can somebody help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="n1cbs0ymiv15ogn1piopg39o6m89" class="xis-codeBlock"&gt;
&lt;PRE class="xis-code"&gt;/* Sort the data set by the group variable */
proc sort data=sashelp.class out=class;
  by age;
run;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV id="p0a0l3oeywdctln16d39syu48fgu" class="xis-codeBlock"&gt;
&lt;PRE class="xis-code"&gt;/* Generate the graph using the sorted data */
proc sgplot data=class;
  styleattrs  
     datacontrastcolors=(red green blue) 
     datalinepatterns=(dot solid);
  series x=height y=weight / group=age;
  keylegend;
run;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 13:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573368#M161870</guid>
      <dc:creator>kunjgemi</dc:creator>
      <dc:date>2019-07-14T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573369#M161871</link>
      <description>&lt;P&gt;Show your log.&amp;nbsp; I'll guess that either your version of SAS does not support STYLEATTRS or there is some other problem causing the 180 error.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 14:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573369#M161871</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-07-14T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573376#M161874</link>
      <description>&lt;P&gt;I am doing this coding in SAS EG&amp;nbsp;7.15 (7.100.5.5850) (32-bit) SAS version is 9.3.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 14:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573376#M161874</guid>
      <dc:creator>kunjgemi</dc:creator>
      <dc:date>2019-07-14T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573377#M161875</link>
      <description>&lt;P&gt;Note that SAS 9.4 was first released 6 years ago and has had 6 maintenance releases since then.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 15:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573377#M161875</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-14T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573400#M161878</link>
      <description>&lt;P&gt;Your link above is for SAS 9.4 but you've indicated you're using SAS 9.3&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checking the SAS 9.3 documentation, STYLEATTRS is not listed in the syntax.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/grstatproc/65235/HTML/default/viewer.htm#n0yjdd910dh59zn1toodgupaj4v9.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/grstatproc/65235/HTML/default/viewer.htm#n0yjdd910dh59zn1toodgupaj4v9.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your purpose is learning, try SAS Academics on Demand (Independent Learner path) or SAS University Edition.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your purpose is implementing style controls, you'll need either template modifications or GTL depending on what you're trying to do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10778"&gt;@kunjgemi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to learn the SGPLOT STYLEATTRS Statement. On trying below code (exactly copied from the URL add for reference),&amp;nbsp;I am getting "ERROR 180-322: Statement is not valid or it is used out of proper order.". I checked my syntax as well but can't figure out what is an actual issue here. Can somebody help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="n1cbs0ymiv15ogn1piopg39o6m89" class="xis-codeBlock"&gt;
&lt;PRE class="xis-code"&gt;/* Sort the data set by the group variable */
proc sort data=sashelp.class out=class;
  by age;
run;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV id="p0a0l3oeywdctln16d39syu48fgu" class="xis-codeBlock"&gt;
&lt;PRE class="xis-code"&gt;/* Generate the graph using the sorted data */
proc sgplot data=class;
  styleattrs  
     datacontrastcolors=(red green blue) 
     datalinepatterns=(dot solid);
  series x=height y=weight / group=age;
  keylegend;
run;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p1dt33l6a6epk6n1chtynsgsjgit.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 20:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573400#M161878</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-14T20:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573421#M161888</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, my company has SAS 9.3, so how shall I add differently line patterns and symbol to below plot with SAS 9.3?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31038iA546FE32BFF55826/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 03:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573421#M161888</guid>
      <dc:creator>kunjgemi</dc:creator>
      <dc:date>2019-07-15T03:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573422#M161889</link>
      <description>Data attribute maps, which I recommend over STYLEATTRS anyways or, as I mentioned above, customize your style template.</description>
      <pubDate>Mon, 15 Jul 2019 03:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/573422#M161889</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-15T03:53:13Z</dc:date>
    </item>
  </channel>
</rss>

