<?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: How to correct error messages in SAS Studio? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301077#M1218</link>
    <description>&lt;P&gt;You're also missing a bunch of run statements. Try copy and pasting this instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA smo_cardio;
INPUT exposed $ disease $ patients;
DATALINES;
exposed disease 50
exposed none 50
not_exp disease 25
not_exp none 75
;
RUN;

PROC FREQ DATA =  smo_cardio;
TABLES exposed*disease / RELRISK RISKDIFF;
WEIGHT patients;
RUN;

PROC CONTENTS DATA = sashelp.heart;
RUN;

PROC FREQ DATA = sashelp.heart;
TABLES ageatdeath*deathcause / OUT = test1;
RUN;

PROC PRINT DATA = test1;
RUN;

PROC GPLOT DATA = test1;
PLOT count*ageatdeath = deathcause;
WHERE deathcause in("Cancer","Cerebral Vascular Disease","Coronary Heart Disease");
SYMBOL1 INTERPOL = JOIN;
RUN;

DATA test2;
SET sashelp.heart;
ageatdeath5 = ROUND(ageatdeath,5);
RUN;

PROC FREQ DATA = test2;
TABLES ageatdeath*deathcause / OUT = test3;
RUN;

PROC GPLOT DATA = test3;
PLOT count*ageatdeath5 = deathcause;
WHERE deathcause in("Cancer","Cerebral Vascular Disease","Coronary Heart Disease");
SYMBOL1 INTERPOL = JOIN;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Sep 2016 17:11:14 GMT</pubDate>
    <dc:creator>JediApprentice</dc:creator>
    <dc:date>2016-09-27T17:11:14Z</dc:date>
    <item>
      <title>How to correct error messages in SAS Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301042#M1216</link>
      <description>&lt;P&gt;I am using SAS Ondemand Academics, SAS Studio. For an assignment, codes were given and I have copied and pasted as well as iputted the codes manually. Error messgaes are available and I do not know how to correct the errors to yield the results. The attachment of the error message is for the code below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA&amp;nbsp;smo_cardio&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INPUT&amp;nbsp;exposed&amp;nbsp;$&amp;nbsp;disease&amp;nbsp;$&amp;nbsp;patients&amp;nbsp;; DATALINES&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exposed&amp;nbsp;disease&amp;nbsp;50 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exposed&amp;nbsp;none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;50 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;not_exp&amp;nbsp;disease&amp;nbsp;25 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;not_exp&amp;nbsp;none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;75 ; PROC&amp;nbsp;FREQ&amp;nbsp;DATA&amp;nbsp;=&amp;nbsp;smo_cardio&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TABLES&amp;nbsp;exposed*disease&amp;nbsp;/&amp;nbsp;RELRISK&amp;nbsp;RISKDIFF&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WEIGHT&amp;nbsp;patients&amp;nbsp;; RUN&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is an additional code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PROC&amp;nbsp;CONTENTS&amp;nbsp;DATA&amp;nbsp;=&amp;nbsp;sashelp.heart&amp;nbsp;; PROC&amp;nbsp;FREQ&amp;nbsp;DATA&amp;nbsp;=&amp;nbsp;sashelp.heart&amp;nbsp;; TABLES&amp;nbsp;ageatdeath*deathcause&amp;nbsp;/&amp;nbsp;OUT&amp;nbsp;=&amp;nbsp;test1&amp;nbsp;; PROC&amp;nbsp;PRINT&amp;nbsp;DATA&amp;nbsp;=&amp;nbsp;test1&amp;nbsp;; PROC&amp;nbsp;GPLOT&amp;nbsp;DATA&amp;nbsp;=&amp;nbsp;test1&amp;nbsp;; PLOT&amp;nbsp;count*ageatdeath&amp;nbsp;=&amp;nbsp;deathcause&amp;nbsp;; WHERE&amp;nbsp;deathcause&amp;nbsp;in&amp;nbsp;("Cancer","Cerebral&amp;nbsp;Vascular&amp;nbsp;Disease", "Coronary&amp;nbsp;Heart&amp;nbsp;Disease")&amp;nbsp;; SYMBOL1&amp;nbsp;INTERPOL&amp;nbsp;=&amp;nbsp;JOIN&amp;nbsp;; DATA&amp;nbsp;test2&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SET&amp;nbsp;sashelp.heart&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ageatdeath5&amp;nbsp;=&amp;nbsp;ROUND(ageatdeath,5)&amp;nbsp;; PROC&amp;nbsp;FREQ&amp;nbsp;DATA&amp;nbsp;=&amp;nbsp;test2&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TABLES&amp;nbsp;ageatdeath5*deathcause&amp;nbsp;/&amp;nbsp;OUT=&amp;nbsp;test3&amp;nbsp;; PROC&amp;nbsp;GPLOT&amp;nbsp;DATA&amp;nbsp;=&amp;nbsp;test3&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PLOT&amp;nbsp;count*ageatdeath5&amp;nbsp;=deathcause&amp;nbsp;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE&amp;nbsp;deathcause&amp;nbsp;IN&amp;nbsp;("Cancer","Cerebral&amp;nbsp;Vascular&amp;nbsp;Disease","Coronary Heart&amp;nbsp;Disease")&amp;nbsp;; SYMBOL1&amp;nbsp;INTERPOL&amp;nbsp;=&amp;nbsp;JOIN&amp;nbsp;; RUN&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 15:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301042#M1216</guid>
      <dc:creator>rselmon0</dc:creator>
      <dc:date>2016-09-27T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct error messages in SAS Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301059#M1217</link>
      <description>&lt;P&gt;Please post attachments as TEXT files not Microsoft office documents or spreadsheets due to issues around security. Many users here will not open them, or their security settings will not allow them to open these files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if you are using code that was copied from somewhere and pasted into the editor. Some sources end up embedding characters that are not visible but are detected by the code parser. If you did copy and paste, then delete the text and type it from scratch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also with DATALINES it is a good practice to left justify the data.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 15:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301059#M1217</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-27T15:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct error messages in SAS Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301077#M1218</link>
      <description>&lt;P&gt;You're also missing a bunch of run statements. Try copy and pasting this instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA smo_cardio;
INPUT exposed $ disease $ patients;
DATALINES;
exposed disease 50
exposed none 50
not_exp disease 25
not_exp none 75
;
RUN;

PROC FREQ DATA =  smo_cardio;
TABLES exposed*disease / RELRISK RISKDIFF;
WEIGHT patients;
RUN;

PROC CONTENTS DATA = sashelp.heart;
RUN;

PROC FREQ DATA = sashelp.heart;
TABLES ageatdeath*deathcause / OUT = test1;
RUN;

PROC PRINT DATA = test1;
RUN;

PROC GPLOT DATA = test1;
PLOT count*ageatdeath = deathcause;
WHERE deathcause in("Cancer","Cerebral Vascular Disease","Coronary Heart Disease");
SYMBOL1 INTERPOL = JOIN;
RUN;

DATA test2;
SET sashelp.heart;
ageatdeath5 = ROUND(ageatdeath,5);
RUN;

PROC FREQ DATA = test2;
TABLES ageatdeath*deathcause / OUT = test3;
RUN;

PROC GPLOT DATA = test3;
PLOT count*ageatdeath5 = deathcause;
WHERE deathcause in("Cancer","Cerebral Vascular Disease","Coronary Heart Disease");
SYMBOL1 INTERPOL = JOIN;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301077#M1218</guid>
      <dc:creator>JediApprentice</dc:creator>
      <dc:date>2016-09-27T17:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to correct error messages in SAS Studio?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301145#M1219</link>
      <description>Thank you so very much!</description>
      <pubDate>Wed, 28 Sep 2016 03:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-correct-error-messages-in-SAS-Studio/m-p/301145#M1219</guid>
      <dc:creator>rselmon0</dc:creator>
      <dc:date>2016-09-28T03:02:26Z</dc:date>
    </item>
  </channel>
</rss>

