<?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: Trouble using the gplot proc - ERROR 180-322 in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Trouble-using-the-gplot-proc-ERROR-180-322/m-p/527430#M6850</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I believe this previous posting sheds some light on your issue: &lt;A href="https://communities.sas.com/t5/SAS-Programming/Smart-Quotes-Vs-Simple-Quotes/td-p/396099" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Smart-Quotes-Vs-Simple-Quotes/td-p/396099&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I think you're having the "smart" quote vs "simple" quote issue or what I call "curly" quotes vs "straight" quotes. Here's a screen shot of your posted code. Note the difference in quotes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="curly_quotes_not_good.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26287iF660694FD25E9D02/image-size/large?v=v2&amp;amp;px=999" role="button" title="curly_quotes_not_good.png" alt="curly_quotes_not_good.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have copied the PROC GPLOT code from Word or a PDF file that used the "smart" or "curly" quotes. In any case, I believe you need to type over the bad quotes with good quotes. When I did that, the code ran for me: &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code_runs_good_quotes.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26288iC19B09AA78420BD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="code_runs_good_quotes.png" alt="code_runs_good_quotes.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that to stop PROC GPLOT, you need to add a QUIT; statement after the RUN; statement. You should notice the good color coding for quoted strings in your editor when you get the quotes all changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 18:34:07 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-01-15T18:34:07Z</dc:date>
    <item>
      <title>Trouble using the gplot proc - ERROR 180-322</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Trouble-using-the-gplot-proc-ERROR-180-322/m-p/527405#M6846</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I hope to plot a curve of dots and lines connecting the dots, and below is my code. I am new to SAS and I wonder if the problem is due to the use of iml here. I also pasted the error log below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
delta = do(0, 16, 2);
alpha = 0.1;
z_half_alpha = quantile('NORMAL', 1-(alpha/2));
n = 10;
sigma = 8;
y = 1 - cdf('NORMAL', (z_half_alpha - delta)/sqrt(2*(sigma**2)/n)) + cdf('NORMAL', (- z_half_alpha - delta)/sqrt(2*(sigma**2)/n));
create q5_data var {delta y}; append; close q5_data;

symbol1 v=circle i=sm5; title1 ’Power Curve for Z-test’; 
axis1 label=(’prob’); 
axis2 label=(’delta’);
proc gplot data = q5_data; 
	plot y*delta / haxis=axis2 
			vaxis=axis1 
			vref=0.95; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And this is the log when I run this piece of code on SAS Studio:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 proc iml;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: IML Ready&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 delta = do(0, 16, 2);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 alpha = 0.1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 z_half_alpha = quantile('NORMAL', 1-(alpha/2));&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 n = 10;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 sigma = 8;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 y = 1 - cdf('NORMAL', (z_half_alpha - delta)/sqrt(2*(sigma**2)/n)) + cdf('NORMAL', (- z_half_alpha -&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 ! delta)/sqrt(2*(sigma**2)/n));&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 create q5_data var {delta y};&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 ! append;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 ! close q5_data;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.Q5_DATA has 9 observations and 2 variables.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 symbol1 v=circle i=sm5; title1 ’Power Curve for Z-test’;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 symbol1 v=circle i=sm5; title1 ’Power Curve for Z-test’;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_______&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 axis1 label=(’prob’);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 axis1 label=(’prob’);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_____&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 axis2 label=(’delta’);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 axis2 label=(’delta’);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_____&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Exiting IML.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 proc gplot data = q5_data;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Procedure GPLOT not found.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 plot y*delta / haxis=axis2&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 vaxis=axis1&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88 vref=0.95;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE GPLOT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;104&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV class="sasSource"&gt;Any help would be appreciated!&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Trouble-using-the-gplot-proc-ERROR-180-322/m-p/527405#M6846</guid>
      <dc:creator>x_yang</dc:creator>
      <dc:date>2019-01-15T17:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using the gplot proc - ERROR 180-322</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Trouble-using-the-gplot-proc-ERROR-180-322/m-p/527430#M6850</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I believe this previous posting sheds some light on your issue: &lt;A href="https://communities.sas.com/t5/SAS-Programming/Smart-Quotes-Vs-Simple-Quotes/td-p/396099" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Smart-Quotes-Vs-Simple-Quotes/td-p/396099&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I think you're having the "smart" quote vs "simple" quote issue or what I call "curly" quotes vs "straight" quotes. Here's a screen shot of your posted code. Note the difference in quotes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="curly_quotes_not_good.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26287iF660694FD25E9D02/image-size/large?v=v2&amp;amp;px=999" role="button" title="curly_quotes_not_good.png" alt="curly_quotes_not_good.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have copied the PROC GPLOT code from Word or a PDF file that used the "smart" or "curly" quotes. In any case, I believe you need to type over the bad quotes with good quotes. When I did that, the code ran for me: &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code_runs_good_quotes.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26288iC19B09AA78420BD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="code_runs_good_quotes.png" alt="code_runs_good_quotes.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that to stop PROC GPLOT, you need to add a QUIT; statement after the RUN; statement. You should notice the good color coding for quoted strings in your editor when you get the quotes all changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Trouble-using-the-gplot-proc-ERROR-180-322/m-p/527430#M6850</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-15T18:34:07Z</dc:date>
    </item>
  </channel>
</rss>

