<?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: PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516761#M6670</link>
    <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying so quickly! Can I use PROC GPLOT in the online version of SAS? I read several post that said to substitute SGPLOT instead. Is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I didn't see the document syntax that you were referring to. Can you please direct me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nefertiti&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 16:16:50 GMT</pubDate>
    <dc:creator>ojinjide0</dc:creator>
    <dc:date>2018-11-28T16:16:50Z</dc:date>
    <item>
      <title>PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE</title>
      <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516747#M6667</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise!&lt;/P&gt;&lt;P&gt;I am unable to use PROC SGPLOT in SAS Studio. I am trying to produce a survival curve. The code seems to work for others using the GPLOT on the non-web based version, however for SAS Studio I get an error message:&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&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="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Here is the code I am using:&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;PRE&gt;Proc Sgplot data=temp1; &lt;BR /&gt;Plot survival*NMSB=MMSE/vaxis=axis1 haxis=axis2 legend=legend1; &lt;BR /&gt;axis1 order=(0 to 1 by .1) &lt;BR /&gt;label=(f=swiss h=2 a=90 "Estimated Survival") &lt;BR /&gt;value=(f=swiss h=2); &lt;BR /&gt;axis2 order=(0 to 80 by 10) &lt;BR /&gt;label=(f=swiss h=2 "Months") &lt;BR /&gt;value=(f=swiss h=2); &lt;BR /&gt;legend1 label=(h=2 "MMSE") &lt;BR /&gt;value=(f=swiss h=2); &lt;BR /&gt;run; &lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Nov 2018 15:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516747#M6667</guid>
      <dc:creator>ojinjide0</dc:creator>
      <dc:date>2018-11-28T15:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE</title>
      <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516757#M6668</link>
      <description>It looks like you've mixed up GPLOT and SGPLOT. They are very different procedures. Your code is GPLOT code, so invalid for SGPLOT. Please refer to the documentation to see the syntax needed for SGPLOT.</description>
      <pubDate>Wed, 28 Nov 2018 16:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516757#M6668</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-28T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE</title>
      <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516761#M6670</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying so quickly! Can I use PROC GPLOT in the online version of SAS? I read several post that said to substitute SGPLOT instead. Is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I didn't see the document syntax that you were referring to. Can you please direct me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nefertiti&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 16:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516761#M6670</guid>
      <dc:creator>ojinjide0</dc:creator>
      <dc:date>2018-11-28T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE</title>
      <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516763#M6671</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/248613"&gt;@ojinjide0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise!&lt;/P&gt;
&lt;P&gt;I am unable to use PROC SGPLOT in SAS Studio. I am trying to produce a survival curve. The code seems to work for others using the GPLOT on the non-web based version, however for SAS Studio I get an error message:&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&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="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;Here is the code I am using:&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;
&lt;PRE&gt;Proc Sgplot data=temp1; &lt;BR /&gt;Plot survival*NMSB=MMSE/vaxis=axis1 haxis=axis2 legend=legend1; &lt;BR /&gt;axis1 order=(0 to 1 by .1) &lt;BR /&gt;label=(f=swiss h=2 a=90 "Estimated Survival") &lt;BR /&gt;value=(f=swiss h=2); &lt;BR /&gt;axis2 order=(0 to 80 by 10) &lt;BR /&gt;label=(f=swiss h=2 "Months") &lt;BR /&gt;value=(f=swiss h=2); &lt;BR /&gt;legend1 label=(h=2 "MMSE") &lt;BR /&gt;value=(f=swiss h=2); &lt;BR /&gt;run; &lt;/PRE&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Copy the code with the error message from the log. Paste the whole thing into the code box. An Error 180-322 usually has an underscore character under the location of the problem. The code with error and the code box will maintain the formatting to show where the error was found (not always the cause as missing semicolons or mismatched quotes or parentheses&amp;nbsp;prior may be the actual cause).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case you have apparently just changed the name of existing Proc GPLOT code to SGPLOT. The plot statements are different and AXIS, SYMBOL, PATTERN and LEGEND statements are not used by SGPLOT.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://communities.sas.com/t5/SAS-Studio/Switching-from-GPLOT-to-SGPLOT/m-p/516057#M6641" target="_blank"&gt;https://communities.sas.com/t5/SAS-Studio/Switching-from-GPLOT-to-SGPLOT/m-p/516057#M6641&lt;/A&gt; for a related question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SGPLOT uses specific types of plots (many more than GPLOT) with different options. I suspect that instead of&lt;/P&gt;
&lt;P&gt;Plot survival*NMSB=MMSE/vaxis=axis1 haxis=axis2 legend=legend1;&lt;/P&gt;
&lt;P&gt;you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SCATTER x=nmsb y=survival / group=mmse;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 16:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516763#M6671</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-28T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE</title>
      <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516764#M6672</link>
      <description>You can use GPLOT in SAS Academics on Demand, you cannot in SAS University Edition (using VirtualBox). &lt;BR /&gt;&lt;BR /&gt;The SGPLOT documentation is here: &lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0yjdd910dh59zn1toodgupaj4v9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2018 16:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516764#M6672</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-28T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE</title>
      <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516797#M6673</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was helpful, thank you!&amp;nbsp; Is there a way to replicate this GPLOT code:&amp;nbsp;symbol l=1 i=step v=dot; for the SGPLOT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 16:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516797#M6673</guid>
      <dc:creator>ojinjide0</dc:creator>
      <dc:date>2018-11-28T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT NOT WORKING FOR SURVIVAL CURVE</title>
      <link>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516806#M6674</link>
      <description>For survival curves you should actually be using the automatic macros to create them. Is there a reason you're not doing that?&lt;BR /&gt;They're documented in the SAS/STAT documentation. &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_toc.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_toc.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Wed, 28 Nov 2018 17:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-SGPLOT-NOT-WORKING-FOR-SURVIVAL-CURVE/m-p/516806#M6674</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-28T17:27:19Z</dc:date>
    </item>
  </channel>
</rss>

