<?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: joining and formatting two variables using cat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/joining-and-formatting-two-variables-using-cat/m-p/417166#M102465</link>
    <description>thank you!</description>
    <pubDate>Wed, 29 Nov 2017 17:31:08 GMT</pubDate>
    <dc:creator>jenim514</dc:creator>
    <dc:date>2017-11-29T17:31:08Z</dc:date>
    <item>
      <title>joining and formatting two variables using cat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/joining-and-formatting-two-variables-using-cat/m-p/417162#M102463</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need some help trouble shooting a little piece of my code.&amp;nbsp; I'm getting error, but not sure why...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need the output to look like mean(std)&amp;nbsp; or&amp;nbsp; x.x(x.xx)&amp;nbsp; --&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sord=2;&lt;BR /&gt; _1=cat(strip(put(mean, 8.1)), ' (' strip(put(std, 10.2))')');&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and second, the next output to look like Min,Max&amp;nbsp; x,x&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;sord = 4;&lt;BR /&gt; _1=cat(strip(put(MIN,8.)),", "(put(MAX,8.)));&lt;BR /&gt; output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting syntax errors an probably missing a parenthesis somewhere...but&amp;nbsp;please help!&amp;nbsp; thx!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 17:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/joining-and-formatting-two-variables-using-cat/m-p/417162#M102463</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2017-11-29T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: joining and formatting two variables using cat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/joining-and-formatting-two-variables-using-cat/m-p/417163#M102464</link>
      <description>&lt;P&gt;If it's parenthesis, count them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you're missing comma's actually - put each item on it's own line to see this, with the comma at the front of the item.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use CATT or CATS instead of CAT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;_1=cat(
    strip(put(mean, 8.1))
, ' (' 

&amp;lt;MISSING COMMA HERE&amp;gt;

strip(put(std, 10.2))
&amp;lt;MISSING COMMA HERE&amp;gt;

')'

);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 17:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/joining-and-formatting-two-variables-using-cat/m-p/417163#M102464</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-29T17:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: joining and formatting two variables using cat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/joining-and-formatting-two-variables-using-cat/m-p/417166#M102465</link>
      <description>thank you!</description>
      <pubDate>Wed, 29 Nov 2017 17:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/joining-and-formatting-two-variables-using-cat/m-p/417166#M102465</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2017-11-29T17:31:08Z</dc:date>
    </item>
  </channel>
</rss>

