<?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: Errors in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590774#M169133</link>
    <description>&lt;P&gt;I knew it was gonna be something obvious. Thank you for the timely reply.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2019 00:57:16 GMT</pubDate>
    <dc:creator>sunbear</dc:creator>
    <dc:date>2019-09-23T00:57:16Z</dc:date>
    <item>
      <title>Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590696#M169111</link>
      <description>&lt;P&gt;I literally can't figure this out. So I'm extremely new to sas and I'm trying to create this dataset, AGE2. I keep getting this strange error that I can't figure out the source. I have narrowed it down to just the AGE2 function thing. I'm thinking it's most likely some type of syntax error and that'll be a total facepalm moment. So I've included all my code for this part of my stuff, but I wont include all the error bc that'll be way too long. So, instead I'll just include the errors I got when running AGE2. Also idk if this is the right forum for this, lmk.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;*PROBLEM 2;

DATA = AGE2;
INPUT AGE WEIGHT GENDER $;
DATALINES;
23 167 M
24 178 F
21 183 F
30 172 M
25 166 M
24 183 M
26 145 F
29 155 F
22 133 M
24 154 M
;
RUN;


PROC PRINT DATA=AGE2;
RUN;

*6;
PROC SGPLOT DATA=AGE2;
	SCATTER X=AGE Y=WEIGHT;
RUN;

*7;
PROC SGPLOT DATA=AGE2;
	HISTOGRAM WEIGHT;
RUN;

*8;
PROC SORT DATA=AGE2 OUT=SORTDATA2;
BY GENDER;
RUN;

PROC BOXPLOT DATA=SORTDATA2;
PLOT WEIGHT*GENDER;
RUN;

*9;
PROC SGPLOT DATA=AGE2;
	HBOX AGE;
RUN;

	&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 70         
 71         DATA = AGE2;
            ____
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 72         INPUT AGE WEIGHT GENDER $;
            _____
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 73         DATALINES;
            _________
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 74         23 167 M
            __
            180
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 75         24 178 F
 76         21 183 F
 77         30 172 M
 78         25 166 M
 79         24 183 M
 80         26 145 F
 81         29 155 F
 82         22 133 M
 83         24 154 M
 84         ;
 
 85         RUN;
 86         
 87         
 88         PROC PRINT DATA=AGE2;
 ERROR: File WORK.AGE2.DATA does not exist.
 89         RUN;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              212.40k
       OS Memory           31396.00k
       Timestamp           09/22/2019 03:58:42 AM
       Step Count                        85  Switch Count  0
       Page Faults                       0
       Page Reclaims                     22
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 90         
 91         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 102        &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Sep 2019 04:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590696#M169111</guid>
      <dc:creator>sunbear</dc:creator>
      <dc:date>2019-09-22T04:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590698#M169113</link>
      <description>&lt;P&gt;Cancel the equal sign on 1st code line.&lt;/P&gt;
&lt;P&gt;It should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA  AGE2;
INPUT AGE WEIGHT GENDER $;
DATALINES;
........&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 04:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590698#M169113</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-09-22T04:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590706#M169115</link>
      <description>&lt;P&gt;When you have a problem with a statement, it is always best to consult the documentation for it.&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n1kh25to5o0wmvn1o4n4hsl3yyww.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;DATA Statement&lt;/A&gt;. It will show you how the statement has to be used.&lt;/P&gt;
&lt;P&gt;Also see Maxim 1: Read the Documentation.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 08:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590706#M169115</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-22T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590774#M169133</link>
      <description>&lt;P&gt;I knew it was gonna be something obvious. Thank you for the timely reply.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 00:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590774#M169133</guid>
      <dc:creator>sunbear</dc:creator>
      <dc:date>2019-09-23T00:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590776#M169135</link>
      <description>&lt;P&gt;Thank you for this. I was oblivious to that = sign. When I was scouring over the code I honestly didn't see it. Sometimes its good to get a second pair of eyes on a question and I appreciate your response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 01:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors/m-p/590776#M169135</guid>
      <dc:creator>sunbear</dc:creator>
      <dc:date>2019-09-23T01:01:30Z</dc:date>
    </item>
  </channel>
</rss>

