<?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: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314741#M68595</link>
    <description>&lt;P&gt;You should read the documentation if your unfamiliar with what goes where.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look and run my code you'll notice that x is the variable for the x axis and y is the variable for the y axis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want line plots the example I pointed you to is exactly what you want to try and replicate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note which variables go where in the example to modify your code accordingly. Give it another shot and if you have more issue s please post back.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2016 06:11:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-11-28T06:11:50Z</dc:date>
    <item>
      <title>SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314727#M68585</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is my SAS code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=d;
plot cd*r r*p;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am not sure why am I getting this error:&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 55         
 56         proc sgplot data=d;
 57         plot cd*r r*p;
            ____
            180
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 58         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SGPLOT used (Total process time):
       real time           0.01 seconds
       cpu time            0.01 seconds
       
 59         
 60         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         &lt;/PRE&gt;&lt;P&gt;Kindly Help!!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 05:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314727#M68585</guid>
      <dc:creator>fdrg</dc:creator>
      <dc:date>2016-11-28T05:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314729#M68587</link>
      <description>&lt;P&gt;Plot isn't a valid statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PLOT is for GPLOT procedures not SGPLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can probably use scatter to get what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc SGPLOT data=SASHELP.class;&lt;/P&gt;
&lt;P&gt;scatter x=height y=weight;&lt;/P&gt;
&lt;P&gt;Run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation for detailed code examples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n19gxtzyuf79t3n16g5v26b73ckv.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n19gxtzyuf79t3n16g5v26b73ckv.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS SAS UE doesn't suppport SAS/Graph procedures such as GPLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 05:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314729#M68587</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-28T05:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314733#M68590</link>
      <description>Thank you reeza for your reply.&lt;BR /&gt;Can you please add as to how can I get a plot of cd*r vs r*p. Coz as per your edit in scatter, I am getting an error. Please help</description>
      <pubDate>Mon, 28 Nov 2016 05:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314733#M68590</guid>
      <dc:creator>fdrg</dc:creator>
      <dc:date>2016-11-28T05:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314734#M68591</link>
      <description>&lt;P&gt;Post your code and log with errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To have two series add a SCATTER statement for each x/y combination, they'll be automatically overlayed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an example with SERIES but the idea is the same. Note that your common variable should be on the same axis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1vkttjoy99wkwn1iyy9leor7xg2.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1vkttjoy99wkwn1iyy9leor7xg2.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 05:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314734#M68591</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-28T05:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314736#M68592</link>
      <description>&lt;P&gt;Hello Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I tried:&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 55         
 56         proc sgplot data=d;
 57         scatter x=cd*r y=r*p;
                        _     _
                        79    22
                        200   200
 ERROR 79-322: Expecting a Y.
 ERROR 22-322: Syntax error, expecting one of the following: ;, /.  
 ERROR 200-322: The symbol is not recognized and will be ignored.
 58         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE SGPLOT used (Total process time):
       real time           0.02 seconds
       cpu time            0.01 seconds
       
 59         
 60         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72 &lt;/PRE&gt;&lt;P&gt;Also I am trying to build a line plot. Will series be the same thing that will help me here. I am new to SAS coding hence, such questions. Apologies&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 06:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314736#M68592</guid>
      <dc:creator>fdrg</dc:creator>
      <dc:date>2016-11-28T06:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314741#M68595</link>
      <description>&lt;P&gt;You should read the documentation if your unfamiliar with what goes where.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look and run my code you'll notice that x is the variable for the x axis and y is the variable for the y axis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want line plots the example I pointed you to is exactly what you want to try and replicate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note which variables go where in the example to modify your code accordingly. Give it another shot and if you have more issue s please post back.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 06:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314741#M68595</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-28T06:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314744#M68596</link>
      <description>Thank you for all your help reeza. I created two columns in the existing data with cd*r and r*p and then created the scatter plot. Thanks again</description>
      <pubDate>Mon, 28 Nov 2016 06:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314744#M68596</guid>
      <dc:creator>fdrg</dc:creator>
      <dc:date>2016-11-28T06:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Univ edition issue :  ERROR 180-322: Statement is not valid or it is used out of proper orde</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314831#M68628</link>
      <description>&lt;P&gt;Because the PLOT statement is not a valid staetment in PROC SGPLOT. Here is a &lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n0yjdd910dh59zn1toodgupaj4v9.htm" target="_self"&gt;link to the PROC SGPLOT documentation.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you are trying to create two scatter plots, you can use the following statements:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=d;
scatter y=cd x=r;
run;

proc sgplot data=d;
scatter y=r x=p;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Univ-edition-issue-ERROR-180-322-Statement-is-not-valid-or/m-p/314831#M68628</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-11-28T15:03:52Z</dc:date>
    </item>
  </channel>
</rss>

