<?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 new column in SAS Studio 5.2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760922#M240695</link>
    <description>Here's a video tutorial on how to add a new column:&lt;BR /&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;</description>
    <pubDate>Wed, 11 Aug 2021 14:36:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-08-11T14:36:59Z</dc:date>
    <item>
      <title>Add new column in SAS Studio 5.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760903#M240684</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, can someone assist me with this question. I want to add another column to my data set in sas studio which has 138435 observations and 22 variables. I would like the new column to be the 23 variable.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760903#M240684</guid>
      <dc:creator>patrick85</dc:creator>
      <dc:date>2021-08-11T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in SAS Studio 5.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760904#M240685</link>
      <description>&lt;P&gt;If you want code, here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
     set have;
     twenty_third_variable=temperature_celsius*9/5 + 32; /* or any other value you want */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to do this via menus only, then I defer to others.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760904#M240685</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-11T13:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in SAS Studio 5.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760918#M240693</link>
      <description>&lt;P&gt;Can you tell us the source of the column?&amp;nbsp; Will it be from another SAS dataset?&amp;nbsp; Is it based on a calculation (as in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;'s response)?&amp;nbsp; Is it from a file?&amp;nbsp; A database?&amp;nbsp; How will you obtain this value?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adding a new column to a SAS dataset is pretty easy.&amp;nbsp; Say you have an existing data set, let's call it "Have."&amp;nbsp; If you want to add a column to the data, one way is a Data step, for example, the below.&amp;nbsp; In my existing data, if I have a column named "Centimeters" but I want a new column called "Inches," I can create a new column by using the standard conversion formula as shown.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Want;
    Set Have;
    Inches = Centimeters / 2.54;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output of the above Data set will be a new dataset named "Want".&amp;nbsp; The new data set will be a copy of Have but will have a new column added to, a column named "Inches."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760918#M240693</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-11T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in SAS Studio 5.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760922#M240695</link>
      <description>Here's a video tutorial on how to add a new column:&lt;BR /&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;</description>
      <pubDate>Wed, 11 Aug 2021 14:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760922#M240695</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-11T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in SAS Studio 5.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760928#M240697</link>
      <description>&lt;P&gt;To re-phrase&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;&amp;nbsp;comments into Paige-speak:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be specific. By providing more information and specific information, you will get faster and better answers.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;General and vague questions get general and vague answers. Specific questions get specific answers.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/760928#M240697</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-11T14:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in SAS Studio 5.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/761082#M240772</link>
      <description>Thank you</description>
      <pubDate>Thu, 12 Aug 2021 07:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-new-column-in-SAS-Studio-5-2/m-p/761082#M240772</guid>
      <dc:creator>patrick85</dc:creator>
      <dc:date>2021-08-12T07:51:27Z</dc:date>
    </item>
  </channel>
</rss>

