<?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: How to make single column from different variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371912#M88863</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137664"&gt;@jdwaterman91&lt;/a&gt;&amp;nbsp;minor suggestion:&lt;/P&gt;
&lt;PRE&gt;Data Some2;
   Set Some;
   Array New A--E;
   Do _N_ = 1 to 5;
      ICD10 = New(_N_);
      if not missing(ICD10) then Output;
   End;
   Keep Claim Suffix ICD10;
Run;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76823"&gt;@ambadi007&lt;/a&gt;&amp;nbsp;did not indicate whether or not the data may sometimes only have fewer than 5 codes, or possibly no codes at all, and what the output for those cases might be. I am assuming that a row with a missing ICD10 is pretty useless and excluding them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 21:10:13 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-29T21:10:13Z</dc:date>
    <item>
      <title>How to make single column from different variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371841#M88829</link>
      <description>&lt;P&gt;Hi Experts ,&lt;/P&gt;&lt;P&gt;I havea a data set that the values are showed like different raws and I want to make that raws in a single column .No problem if the claim and suffixs shows multiple times&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the data Have&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Claim Suffix &amp;nbsp;ICD10A &amp;nbsp;ICD10B &amp;nbsp;ICD10C ICD10D &amp;nbsp;ICD10E&lt;BR /&gt;12589 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vvg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ijk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ghy &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ilk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;opl&lt;BR /&gt;12589 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rty &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ilk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rtr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; erd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; owe&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data want&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Claim Suffix &amp;nbsp; ICD10&lt;BR /&gt;12589 &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vvg&lt;BR /&gt;12589 &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ijk&lt;BR /&gt;12589 &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ghy&lt;BR /&gt;12589 &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ilk&lt;BR /&gt;12589 &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; opl&lt;BR /&gt;12589 &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rty&lt;BR /&gt;12589 &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ilk&lt;BR /&gt;12589 &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rtr&lt;BR /&gt;12589 &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; erd&lt;BR /&gt;12589 &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;owe&lt;/P&gt;&lt;P&gt;How to proceed with this scenario Please advice&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371841#M88829</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2017-06-29T17:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single column from different variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371844#M88830</link>
      <description>&lt;P&gt;PROC TRANSPOSE - wide to long.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-wide-to-long-using-proc-transpose/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-wide-to-long-using-proc-transpose/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Transpose via a DATA step&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/modules/reshaping-data-wide-to-long-using-a-data-step/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/reshaping-data-wide-to-long-using-a-data-step/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371844#M88830</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-29T18:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single column from different variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371896#M88853</link>
      <description>&lt;P&gt;Would something like this work for your situation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Some;
input Claim Suffix A $ B $ C $ D $ E $;
datalines;
12589 1 vvg ijk ghy ilk opl
12589 2 rty ilk rtr erd owe
;
run;

Data Some2;
Set Some;
Array New A--E;
Do _N_ = 1 to dim(New);
ICD10 = New(_N_);
Output;
End;
Keep Claim Suffix ICD10;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 13:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371896#M88853</guid>
      <dc:creator>jdwaterman91</dc:creator>
      <dc:date>2017-06-30T13:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single column from different variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371912#M88863</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137664"&gt;@jdwaterman91&lt;/a&gt;&amp;nbsp;minor suggestion:&lt;/P&gt;
&lt;PRE&gt;Data Some2;
   Set Some;
   Array New A--E;
   Do _N_ = 1 to 5;
      ICD10 = New(_N_);
      if not missing(ICD10) then Output;
   End;
   Keep Claim Suffix ICD10;
Run;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76823"&gt;@ambadi007&lt;/a&gt;&amp;nbsp;did not indicate whether or not the data may sometimes only have fewer than 5 codes, or possibly no codes at all, and what the output for those cases might be. I am assuming that a row with a missing ICD10 is pretty useless and excluding them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 21:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-single-column-from-different-variables/m-p/371912#M88863</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-29T21:10:13Z</dc:date>
    </item>
  </channel>
</rss>

