<?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: I am trying to add a variable to my data set in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/I-am-trying-to-add-a-variable-to-my-data-set/m-p/859972#M37982</link>
    <description>&lt;P&gt;In SAS, there are no "sheets", there are data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you provided probably means you have somehow over-written the original female_names data set with an empty one, and so you need to re-create the non-empty female_names data set. The code uses a poor practice of overwriting a data set with a new data set of the same name. Better is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data female_names1;
	set female_names;
	fraction = count/180623104;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, a brand new data set female_names1 is created, and female_names is unchanged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, when you get errors in the log, show us the ENTIRE log for the step (PROC or DATA step) that has the errors. When I say ENTIRE log, I mean every single line, whether it contains the error, or not.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 18:26:17 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-02-21T18:26:17Z</dc:date>
    <item>
      <title>I am trying to add a variable to my data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-am-trying-to-add-a-variable-to-my-data-set/m-p/859970#M37981</link>
      <description>&lt;P&gt;For some reason it keeps creating a new sheet in the folder with zero observations, I would like to know where I'm going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data female_names;
	set female_names;
	fraction = count/180623104;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2023 18:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-am-trying-to-add-a-variable-to-my-data-set/m-p/859970#M37981</guid>
      <dc:creator>hz16g22</dc:creator>
      <dc:date>2023-02-21T18:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to add a variable to my data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-am-trying-to-add-a-variable-to-my-data-set/m-p/859972#M37982</link>
      <description>&lt;P&gt;In SAS, there are no "sheets", there are data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you provided probably means you have somehow over-written the original female_names data set with an empty one, and so you need to re-create the non-empty female_names data set. The code uses a poor practice of overwriting a data set with a new data set of the same name. Better is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data female_names1;
	set female_names;
	fraction = count/180623104;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, a brand new data set female_names1 is created, and female_names is unchanged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, when you get errors in the log, show us the ENTIRE log for the step (PROC or DATA step) that has the errors. When I say ENTIRE log, I mean every single line, whether it contains the error, or not.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 18:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-am-trying-to-add-a-variable-to-my-data-set/m-p/859972#M37982</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-21T18:26:17Z</dc:date>
    </item>
  </channel>
</rss>

