<?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 New variable but getting error in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546768#M8271</link>
    <description>&lt;P&gt;Hello All-&lt;/P&gt;&lt;P&gt;I am trying to write a new variable in a data set. From my research it says I need to use the 'data' command and 'set' but I am getting an error. My current data set is called middata.her and I am trying to make a new variable named ICENTERED that calculates the deviation of a variable from the sample mean. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname middata '/folders/myfolders/';&lt;BR /&gt;data ICENTERED&lt;BR /&gt;set middata.HER;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR 56-185: SET is not allowed in the DATA statement when option DATASTMTCHK=COREKEYWORDS. Check for a missing semicolon in the&lt;/DIV&gt;&lt;DIV class="sasError"&gt;DATA statement, or use DATASTMTCHK=NONE.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I am not sure what that error means because every tutorial says to use "Set"&lt;/DIV&gt;</description>
    <pubDate>Thu, 28 Mar 2019 02:11:57 GMT</pubDate>
    <dc:creator>AprilR</dc:creator>
    <dc:date>2019-03-28T02:11:57Z</dc:date>
    <item>
      <title>New variable but getting error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546768#M8271</link>
      <description>&lt;P&gt;Hello All-&lt;/P&gt;&lt;P&gt;I am trying to write a new variable in a data set. From my research it says I need to use the 'data' command and 'set' but I am getting an error. My current data set is called middata.her and I am trying to make a new variable named ICENTERED that calculates the deviation of a variable from the sample mean. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname middata '/folders/myfolders/';&lt;BR /&gt;data ICENTERED&lt;BR /&gt;set middata.HER;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR 56-185: SET is not allowed in the DATA statement when option DATASTMTCHK=COREKEYWORDS. Check for a missing semicolon in the&lt;/DIV&gt;&lt;DIV class="sasError"&gt;DATA statement, or use DATASTMTCHK=NONE.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I am not sure what that error means because every tutorial says to use "Set"&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Mar 2019 02:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546768#M8271</guid>
      <dc:creator>AprilR</dc:creator>
      <dc:date>2019-03-28T02:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: New variable but getting error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546769#M8272</link>
      <description>&lt;P&gt;You are missing a semicolon:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname middata '/folders/myfolders/';
data ICENTERED; * &amp;lt;=== here;
set middata.HER;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 02:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546769#M8272</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-03-28T02:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: New variable but getting error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546771#M8274</link>
      <description>&lt;P&gt;Someone else has provided the answer, but I wanted to point out the SAS tutorial video's which cover these types of topics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This specific one covers new variables:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://video.sas.com/detail/videos/sas-analytics-u/video/4573023399001/creating-a-new-column-in-sas?autoStart=true&amp;amp;page=1" target="_blank"&gt;https://video.sas.com/detail/videos/sas-analytics-u/video/4573023399001/creating-a-new-column-in-sas?autoStart=true&amp;amp;page=1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The general ones are here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://video.sas.com/category/videos/sas-analytics-u#category/videos/sas-analytics-u/0" target="_blank"&gt;https://video.sas.com/category/videos/sas-analytics-u#category/videos/sas-analytics-u/0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/254798"&gt;@AprilR&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello All-&lt;/P&gt;
&lt;P&gt;I am trying to write a new variable in a data set. From my research it says I need to use the 'data' command and 'set' but I am getting an error. My current data set is called middata.her and I am trying to make a new variable named ICENTERED that calculates the deviation of a variable from the sample mean. Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname middata '/folders/myfolders/';&lt;BR /&gt;data ICENTERED&lt;BR /&gt;set middata.HER;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the error&lt;/P&gt;
&lt;DIV class="sasError"&gt;ERROR 56-185: SET is not allowed in the DATA statement when option DATASTMTCHK=COREKEYWORDS. Check for a missing semicolon in the&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;DATA statement, or use DATASTMTCHK=NONE.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;I am not sure what that error means because every tutorial says to use "Set"&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 02:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546771#M8274</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-28T02:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: New variable but getting error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546797#M8275</link>
      <description>&lt;P&gt;The answer is RIGHT THERE BEFORE YOUR EYES:&lt;/P&gt;
&lt;PRE&gt;Check for a missing semicolon in the DATA statement&lt;/PRE&gt;
&lt;P&gt;That is one of the best and most comprehensive ERROR messages I have ever seen in SAS, and it shows the exact cause.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 06:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/New-variable-but-getting-error/m-p/546797#M8275</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-28T06:44:53Z</dc:date>
    </item>
  </channel>
</rss>

