<?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: Add a column to sas file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443822#M111070</link>
    <description>&lt;P&gt;Also note that upgrading the VirtualBox from 5.2.6 to 5.2.8 have issues with shared folder. In case if you have problem accessing the local files in SAS UE then downgrade the VirtualBox to 5.2.6. You can find the previous version of Virtual Box here&amp;nbsp;&lt;A href="https://download.virtualbox.org/virtualbox/5.2.6/" target="_self"&gt;VirtualBox-5.2.6-120293-Win.exe &lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 16:50:19 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-03-08T16:50:19Z</dc:date>
    <item>
      <title>Add a column to sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443793#M111055</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have SAV file that includes 124 columns and 4000 lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know why I can not import an excel file to SAS (working via the university), so now I am trying to do other action in order to add data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want&amp;nbsp;to add an additional column (new variable) with 4000 lines to the existing SAV file. How do you suggest to do it (I check in this community&amp;nbsp;and find many options like SQL but I am not sure about it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any clue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hedva&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 15:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443793#M111055</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2018-03-08T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add a column to sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443805#M111060</link>
      <description>&lt;P&gt;What is a SAV file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;I do not know why I can not import an excel file to SAS (working via the university)" - we don't know either, perhaps if you told us what you were doing, what errors you get etc.&amp;nbsp; As UE runs on a virtual linux image which Office is not, then yes SAS cannot process Excel files.&amp;nbsp; You can of course save the Excel file as CSV and then import that into SAS (the problem here lies with Office which is proprietary Windows only software).&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As for adding another column, you can do this in any number of ways through datastep (this is the main language) or sql sub component.&amp;nbsp; For example here I add a column to the dataset have outputting to a new dataset want:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  new_var=1 + 2;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;new_var will default to numeric length 8 as I did not specify any format or type.&amp;nbsp; You need to provide more information on your specifics for us to help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 15:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443805#M111060</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-08T15:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add a column to sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443816#M111066</link>
      <description>&lt;P&gt;SAS UE can deal with Excel files and SPSS files without issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you importing your data? If you're not sure of the code and such and are more familiar with SPSS point and click interface, I recommend using the GUI tasks instead of trying to code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443816#M111066</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-08T16:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add a column to sas file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443822#M111070</link>
      <description>&lt;P&gt;Also note that upgrading the VirtualBox from 5.2.6 to 5.2.8 have issues with shared folder. In case if you have problem accessing the local files in SAS UE then downgrade the VirtualBox to 5.2.6. You can find the previous version of Virtual Box here&amp;nbsp;&lt;A href="https://download.virtualbox.org/virtualbox/5.2.6/" target="_self"&gt;VirtualBox-5.2.6-120293-Win.exe &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-column-to-sas-file/m-p/443822#M111070</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-08T16:50:19Z</dc:date>
    </item>
  </channel>
</rss>

