<?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: proc transpose with some records missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793270#M254230</link>
    <description>Figured it is due to duplicated IDs.  Dataset is more like this...&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;input ID Type $;&lt;BR /&gt;infile datalines missover;&lt;BR /&gt;datalines;&lt;BR /&gt;1 Apple  &lt;BR /&gt;2 Orange &lt;BR /&gt;3        &lt;BR /&gt;3 Apple&lt;BR /&gt;3 Apple&lt;BR /&gt;4 Apple&lt;BR /&gt;4 Lemon  &lt;BR /&gt;;</description>
    <pubDate>Sat, 29 Jan 2022 07:53:36 GMT</pubDate>
    <dc:creator>ywon111</dc:creator>
    <dc:date>2022-01-29T07:53:36Z</dc:date>
    <item>
      <title>proc transpose with some records missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793117#M254151</link>
      <description>&lt;P&gt;Hi, how do I transpose a dataset when there is blank data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="64" height="17" class="xl63" style="height: 12.75pt; width: 48pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;Type&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl63" style="height: 12.75pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Apple&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl63" style="height: 12.75pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Orange&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl63" style="height: 12.75pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl63" style="height: 12.75pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Lemon&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I want:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="64" height="17" class="xl65" style="height: 12.75pt; width: 48pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;1&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;2&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;3&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;Type&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Apple&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Orange&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Lemon&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 28 Jan 2022 13:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793117#M254151</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2022-01-28T13:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose with some records missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793119#M254153</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID Type $;
infile datalines missover;
datalines;
1 Apple  
2 Orange 
3        
4 Lemon  
;

proc transpose data=have out=want;
    id ID;
    var Type;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jan 2022 13:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793119#M254153</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-01-28T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose with some records missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793269#M254229</link>
      <description>Your code works fine. Trying to adapt to my dataset, are there reasons why it will show no records? Log is empty too.&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Sat, 29 Jan 2022 07:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793269#M254229</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2022-01-29T07:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose with some records missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793270#M254230</link>
      <description>Figured it is due to duplicated IDs.  Dataset is more like this...&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;input ID Type $;&lt;BR /&gt;infile datalines missover;&lt;BR /&gt;datalines;&lt;BR /&gt;1 Apple  &lt;BR /&gt;2 Orange &lt;BR /&gt;3        &lt;BR /&gt;3 Apple&lt;BR /&gt;3 Apple&lt;BR /&gt;4 Apple&lt;BR /&gt;4 Lemon  &lt;BR /&gt;;</description>
      <pubDate>Sat, 29 Jan 2022 07:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose-with-some-records-missing/m-p/793270#M254230</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2022-01-29T07:53:36Z</dc:date>
    </item>
  </channel>
</rss>

