<?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 in reading the complex excel file and then Transpose in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167497#M43373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason it won't accept .xlsx files, try resaving and attaching as .xls file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 03:33:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-10-01T03:33:10Z</dc:date>
    <item>
      <title>Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167489#M43365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need&amp;nbsp; some help in reading the complex Excel file and&amp;nbsp; then once I have read it, I want to transpose the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; There are 2 blank lines before the data starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the sample Input:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1813px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="81"&gt;M_Type&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="114"&gt;M_TYPE_DESC&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="109"&gt;P_H_Desc&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="125"&gt;MARKET_Type_Ind&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="141"&gt;MAT ~ 09/2010&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="115"&gt;MAT ~ 09/2011&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="136"&gt;YTD ~ 09/2010&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="133"&gt;YTD ~ 09/2011&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="144"&gt;MAT ~ 09/2009&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="144"&gt;MAT ~ 09/2009&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="141"&gt;MAT ~ 09/2010&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="141"&gt;MAT ~ 09/2010&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="143"&gt;MAT&amp;nbsp;&amp;nbsp; ~09/2011&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="146"&gt;MAT&amp;nbsp;&amp;nbsp; ~09/2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;ABC.GROWTH&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;XYZ.PRODUC&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;ABC.GROWTH&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;XYZ.PRODUC&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;US&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Growth~09/2010&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Growth~09/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;350702456608.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;338338364318.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;260434737707.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;249355601999.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;81913057250.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;12863795856.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;18357058601.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;936889621.00&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;-3.53&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;-16.55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output is as follows:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1077px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;M_Type&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="96"&gt;M_TYPE_DESC&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;P_H_Desc&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="125"&gt;MARKET_Type_Ind&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="65"&gt;Y_mnth&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="110"&gt;MAT&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="110"&gt;YTD&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="104"&gt;ABC.GROWTH&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="103"&gt;XYZ.PRODUC&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="110"&gt;Growth~09/2010&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="110"&gt;Growth~09/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;201009&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;350702456608.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;260434737707.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;81913057250.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;12863795856.00&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;201109&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;338338364318.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;249355601999.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18357058601.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;936889621.00&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-3.53&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;201209&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;-16.55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 22:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167489#M43365</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-09-30T22:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167490#M43366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry the output should be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1077px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;M_Type&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="96"&gt;M_TYPE_DESC&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="80"&gt;P_H_Desc&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="125"&gt;MARKET_Type_Ind&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="65"&gt;Y_mnth&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="110"&gt;MAT&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="110"&gt;YTD&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="104"&gt;ABC.GROWTH&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="103"&gt;XYZ.PRODUC&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="110"&gt;Growth~09/2010&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="110"&gt;Growth~09/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;200909&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;81913057250.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12863795856.00&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201009&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;350702456608.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;260434737707.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;18357058601.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;936889621.00&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201109&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;338338364318.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;249355601999.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="110"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" width="110"&gt;-3.53&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;L&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Local&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Pharmacy&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;201209&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;-16.55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 23:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167490#M43366</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-09-30T23:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167491#M43367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be best to attach a sample excel file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 23:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167491#M43367</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-30T23:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167492#M43368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza.&amp;nbsp; I tried attaching the file but I got error. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 23:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167492#M43368</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-09-30T23:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167493#M43369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Does it have to be an Excel file? Could you have it converted to CSV or some other more portable format first?&lt;/P&gt;&lt;P&gt;2) Read the data block separate from the header rows.&amp;nbsp; Then you can transpose the data block.&amp;nbsp; Transpose the header rows. Split the labels into variables.&amp;nbsp; Merge them back and then transpose into your structure of choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vertical_data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VAR1|VAR2|VAR3|VAR4|_NAME_|COL1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;L|Local|Pharmacy|E|VAR5|350702456608.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;L|Local|Pharmacy|E|VAR6|338338364318.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vertical_headers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;_NAME_|COL1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VAR5|MAT ~ 09/2010 US&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VAR6|MAT ~ 09/2011 US&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VAR7|YTD ~ 09/2010 US&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VAR8|YTD ~ 09/2011 US&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;VAR9|MAT ~ 09/2009 &lt;SPAN style="background-color: #ffffff;"&gt;ABC.GROWTH&lt;/SPAN&gt; US&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 23:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167493#M43369</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-30T23:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167494#M43370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom.&lt;/P&gt;&lt;P&gt;Data needs to be&amp;nbsp; in excel format.&amp;nbsp; It cannot be changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 23:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167494#M43370</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-09-30T23:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167495#M43371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't really change the prescription for the algorithm to use to parse it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try using the RANGE= statement in the PROC IMPORT code to limit the input to specific parts of the sheet.&lt;/P&gt;&lt;P&gt;Or if you can get them to make named ranges in the worksheet then your can reference those in the RANGE= statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 00:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167495#M43371</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-10-01T00:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167496#M43372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having that Excel file would be very useful. Try Zipping the file before attaching.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 02:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167496#M43372</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-10-01T02:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167497#M43373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason it won't accept .xlsx files, try resaving and attaching as .xls file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 03:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167497#M43373</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-01T03:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167498#M43374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be misinterpreting your problem but without your SAS code I am just going to ask: have you tried PROC IMPORT with GETNAMES=YES and DATAROW=3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last week I had to bring in a csv file where the first six records have stuff I can't use/don't need. I wound up reading it with FIRSTOBS=7 and output to a temporary file, then PROC IMPORT worked with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 03:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167498#M43374</guid>
      <dc:creator>lloydc</dc:creator>
      <dc:date>2014-10-01T03:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167499#M43375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167499#M43375</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-10-01T12:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167500#M43376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PGStats, I have attached the zipped file with Input file and How output file that shows how output should look like.. I have used following to import the file PROC IMPORT OUT=tempdata datafile="c\temp\Input Data.xls" dbms=EXCEL&amp;nbsp; REPLACE;&amp;nbsp;&amp;nbsp; Sheet="Sheet1";&amp;nbsp; mixed=yes;&amp;nbsp;&amp;nbsp; getnames=yes; RUN; I have to use mixed = yes option since the columns have character and numeric values. Because of that certain numeric values like 1.04575E+11 don't get converted to numeric. Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167500#M43376</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-10-01T12:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167501#M43377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167501#M43377</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-10-01T13:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167502#M43378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom has provided the best solution, convert the Excel file to CSV -&amp;gt; SaveAs from the Excel file you have to a local area, then you have the full range of import functionality through file import in a datastep.&amp;nbsp; Proc export is at best a simple wrapper for infile processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, not sure what your question is, is it in relation to importing the file, or manipulating the result? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167502#M43378</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-01T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167503#M43379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks RW9. I can transpose all the other&amp;nbsp; fields except MAT ~ 09/2009 MAT ~ 09/2009 MAT ~ 09/2010 MAT ~ 09/2010 MAT~09/2011 MAT~09/2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC.GROWTH XYZ.PRODUC&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC.GROWTH XYZ.PRODUC Growth~09/2010 Growth~09/2011 How do I transpose the above fields?&amp;nbsp; You can look at my attached output file. Thanks for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167503#M43379</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-10-01T14:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167504#M43380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use an array and output:&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array col{20} mat092009 mat0920xx...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do I=1 to 20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=col{1}; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't do a more definite answer at the moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 15:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167504#M43380</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-01T15:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167505#M43381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; infile=c:\downloads\Input Data.xls;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* Read entire file and ignore column names ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;import&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;datafile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"&amp;amp;infile"&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=have replace &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=xls ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;getnames&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=no; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* Add ROW numbers ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; have ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; row+&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; have ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* Generate Y_MONTH and variable names from first three rows ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;transpose&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=have(obs=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; drop=a b c d row) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;prefix&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=names(drop=_label_) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_all_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; names;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; _newname_ $&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;32&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Y_month $&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; names ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; name2 = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'US'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; name2=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; name3 = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'US'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; name3=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; y_month=scan(name1,-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' ~/'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;)||scan(name1,-&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' ~/'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; name1=scan(name1,&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' ~'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; _newname_=translate(trim(coalescec(of name3-name1)),&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'____'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' .~/'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* Transpose the data lines ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;transpose&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=have(firstobs=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; drop=a b c d) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=values(drop=_label_ where=(_name_ ne &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'row'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; row;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;var&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_all_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* Combine with names, convert to numbers ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;noprint&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; values2 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; a.row&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , a._name_&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , input(col1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;comma32.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; col1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , b._newname_,b.y_month&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; values a , names b&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; a._name_ = b._name_&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;order&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; a.row,b.y_month&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* To force column order add extra row with names in order and missing ROW and Y_MONTH ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; values3 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; names (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=Y_month) values2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* Transpose ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;transpose&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=values3 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=want (drop=_name_ where=(row ne &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; row y_month ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; _newname_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; col1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;* Add back the first 4 columns ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;merge&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; have(firstobs=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; keep=row a b c d) want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; row ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;rename&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; a=M_Type b=M_TYPE_DESC c=P_H_Desc d=MARKET_Type_Ind ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 10:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167505#M43381</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-10-02T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help in reading the complex excel file and then Transpose</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167506#M43382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everybody for help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 12:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-in-reading-the-complex-excel-file-and-then-Transpose/m-p/167506#M43382</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-10-02T12:47:48Z</dc:date>
    </item>
  </channel>
</rss>

