<?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: combine this into single variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826601#M326501</link>
    <description>&lt;P&gt;I don't understand this. Do you want the values in a single variable or multiple variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be more specific.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 11:44:02 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-08-02T11:44:02Z</dc:date>
    <item>
      <title>combine this into single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826577#M326494</link>
      <description>&lt;P&gt;ID&amp;nbsp; &amp;nbsp; NAME&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; FirstName&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; LastName&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; ABC&lt;/P&gt;&lt;P&gt;How to combine this into single variable&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output :-FirstName LastName ABC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826577#M326494</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2022-08-02T09:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: combine this into single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826578#M326495</link>
      <description>&lt;P&gt;Good day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give the below a go.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;DATA WANT;
  SET HAVE;
  BY ID;
  LENGTH COMBINED $200;
  RETAIN COMBINED;
  COMBINED=IFC(FIRST.ID,NAME,CATX('-',COMBINED,NAME));
  IF LAST.ID THEN OUTPUT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826578#M326495</guid>
      <dc:creator>Adriaan_Gouws</dc:creator>
      <dc:date>2022-08-02T09:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: combine this into single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826588#M326497</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID NAME :$10.;
datalines;
1 FirstName 
1 LastName  
1 ABC       
;

data want;
   do until (last.id);
      set have;
      by id;
      length comb $ 200;
      comb = catx(' ', comb, name);
   end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 10:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826588#M326497</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-08-02T10:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: combine this into single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826600#M326500</link>
      <description>&lt;P&gt;Thanks. I have tried executing the same but the output is different then i have expected&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output will be :-&lt;/P&gt;&lt;P&gt;e.g:&lt;/P&gt;&lt;P&gt;1&amp;nbsp; FirstName LastName ABC&lt;/P&gt;&lt;P&gt;1 Daniel&amp;nbsp; &amp;nbsp; Riccardo&amp;nbsp; &amp;nbsp;ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 11:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826600#M326500</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2022-08-02T11:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: combine this into single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826601#M326501</link>
      <description>&lt;P&gt;I don't understand this. Do you want the values in a single variable or multiple variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be more specific.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 11:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826601#M326501</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-08-02T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: combine this into single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826625#M326508</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/430763"&gt;@animesh123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks. I have tried executing the same but the output is different then i have expected&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output will be :-&lt;/P&gt;
&lt;P&gt;e.g:&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; FirstName LastName ABC&lt;/P&gt;
&lt;P&gt;1 Daniel&amp;nbsp; &amp;nbsp; Riccardo&amp;nbsp; &amp;nbsp;ABC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That output does not look like it could have been generated from the input you provided in your question.&amp;nbsp; There was no Daniel in your original data for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide a more complete example input.&amp;nbsp; Provide the output that you expect from that input.&amp;nbsp; Provide both as actual working data steps that create SAS datasets so there are no questions about the names, types, lengths, etc of the variables you have and the variables you want.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combine-this-into-single-variable/m-p/826625#M326508</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-02T13:59:47Z</dc:date>
    </item>
  </channel>
</rss>

