<?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: Help needed with creating new variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464887#M285137</link>
    <description>&lt;P&gt;Please post what you’ve tried so far. I would expect you to first summarize the data via PROC MEANS and then combine it using a data step (CATT) and then displaying via PROC PRINT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a paper called Creating Complex Reports from Cynthia Zender that has examples with code and definitely several on here.&amp;nbsp;&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/211888"&gt;@Calvarez282&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help ASAP!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create an "Mean (SD)" variable using a separate mean and SD variables, how can I do this? I have tried many things, but it is hard to add parenthesis and still have SAS read the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 19:52:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-24T19:52:00Z</dc:date>
    <item>
      <title>Help needed with creating new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464882#M285135</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help ASAP!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an "Mean (SD)" variable using a separate mean and SD variables, how can I do this? I have tried many things, but it is hard to add parenthesis and still have SAS read the variable names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464882#M285135</guid>
      <dc:creator>Calvarez282</dc:creator>
      <dc:date>2018-05-24T19:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with creating new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464885#M285136</link>
      <description>&lt;P&gt;Looks like this is your first post. So welcome to the SAS forum. Sure, you will get help but you need to provide more details. A sample of your dataset, a sample of your requirement(output) and a logic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish I could show you a link that explains how to post a comprehensive question that is often shared by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;/&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;, but&amp;nbsp; I feel bad that I don't have it. Sorry&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464885#M285136</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-24T19:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with creating new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464887#M285137</link>
      <description>&lt;P&gt;Please post what you’ve tried so far. I would expect you to first summarize the data via PROC MEANS and then combine it using a data step (CATT) and then displaying via PROC PRINT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a paper called Creating Complex Reports from Cynthia Zender that has examples with code and definitely several on here.&amp;nbsp;&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/211888"&gt;@Calvarez282&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help ASAP!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create an "Mean (SD)" variable using a separate mean and SD variables, how can I do this? I have tried many things, but it is hard to add parenthesis and still have SAS read the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464887#M285137</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-24T19:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with creating new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464951#M285138</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/211888"&gt;@Calvarez282&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help ASAP!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create an "Mean (SD)" variable using a separate mean and SD variables, how can I do this? I have tried many things, but it is hard to add parenthesis and still have SAS read the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Short answer: don't. Use a valid SAS name (like mean_sd), consisting of letters, digits and underlines (and must not start with a digit), and put fancy names/descriptions in the label where they belong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For detailed help how to calculate values etc, post the code you tried, example data (see my footnotes for how to do this), and the expected output/result.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 06:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/464951#M285138</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-25T06:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with creating new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/465452#M285139</link>
      <description>&lt;P&gt;If you want to name your variables in non-standard ways, you will have to quote the names like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;'Mean (SD)'n=&amp;lt;whatever expression you use to calculate it&amp;gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you will have to set&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;option validvarname=ANY;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 11:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-needed-with-creating-new-variable/m-p/465452#M285139</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-05-28T11:15:48Z</dc:date>
    </item>
  </channel>
</rss>

