<?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 Strange Results importing Excel File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671020#M201466</link>
    <description>&lt;P&gt;I have an Excel file&amp;nbsp;(a1:vk119) that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Term&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;1/2/2019&lt;/TD&gt;&lt;TD&gt;1/3/2019&lt;/TD&gt;&lt;TD&gt;1/4/2019&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;2.5%&lt;/TD&gt;&lt;TD&gt;2.6%&lt;/TD&gt;&lt;TD&gt;2.3%&lt;/TD&gt;&lt;TD&gt;2.5%&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;3.2%&lt;/TD&gt;&lt;TD&gt;3.4%&lt;/TD&gt;&lt;TD&gt;3.6%&lt;/TD&gt;&lt;TD&gt;3.1%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;2.75%&lt;/TD&gt;&lt;TD&gt;3.2%&lt;/TD&gt;&lt;TD&gt;2.7%&lt;/TD&gt;&lt;TD&gt;3.15%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to tranpose the file so that I have Term and Date with corresponding values for each Date/Term combination. I've tried two methods for importing the file. I tried&amp;nbsp;Using:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;datafile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"\\filepath\excelFile.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLFile&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Excel&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SHEET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Sheet1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Getnames&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=YES;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This gives me some char fields with underscores&amp;nbsp;that I can compress to get the dates, however I don't get all of the columns a:vx. So I used, DBMS=XLSX but I strangely end up with a 2 sets of columns names which I don't know what I can do with.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Term&lt;/TD&gt;&lt;TD&gt;Day_Name_1&lt;/TD&gt;&lt;TD&gt;Day_Name_2&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;_43476&lt;/TD&gt;&lt;TD&gt;_43483&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;2.5%&lt;/TD&gt;&lt;TD&gt;2.6%&lt;/TD&gt;&lt;TD&gt;2.3%&lt;/TD&gt;&lt;TD&gt;2.4%&lt;/TD&gt;&lt;TD&gt;2.65%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;3.2%&lt;/TD&gt;&lt;TD&gt;3.4%&lt;/TD&gt;&lt;TD&gt;3.6%&lt;/TD&gt;&lt;TD&gt;3.1%&lt;/TD&gt;&lt;TD&gt;3.35%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can transpose the table like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;transpose&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLFile &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLFileOut;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TERM;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _:; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;but I end up missing a large number of dates from the file. I'm in a large company and the file is updated frequently and used by other departments, so I can't change the excel file directly. Any thoughts as to why the column names are coming into SAS like this and any ideas for workarounds?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 14:55:30 GMT</pubDate>
    <dc:creator>LB3</dc:creator>
    <dc:date>2020-07-21T14:55:30Z</dc:date>
    <item>
      <title>Strange Results importing Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671020#M201466</link>
      <description>&lt;P&gt;I have an Excel file&amp;nbsp;(a1:vk119) that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Term&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;1/2/2019&lt;/TD&gt;&lt;TD&gt;1/3/2019&lt;/TD&gt;&lt;TD&gt;1/4/2019&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;2.5%&lt;/TD&gt;&lt;TD&gt;2.6%&lt;/TD&gt;&lt;TD&gt;2.3%&lt;/TD&gt;&lt;TD&gt;2.5%&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;3.2%&lt;/TD&gt;&lt;TD&gt;3.4%&lt;/TD&gt;&lt;TD&gt;3.6%&lt;/TD&gt;&lt;TD&gt;3.1%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;2.75%&lt;/TD&gt;&lt;TD&gt;3.2%&lt;/TD&gt;&lt;TD&gt;2.7%&lt;/TD&gt;&lt;TD&gt;3.15%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to tranpose the file so that I have Term and Date with corresponding values for each Date/Term combination. I've tried two methods for importing the file. I tried&amp;nbsp;Using:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;datafile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"\\filepath\excelFile.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLFile&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Excel&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;SHEET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Sheet1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;Getnames&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=YES;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This gives me some char fields with underscores&amp;nbsp;that I can compress to get the dates, however I don't get all of the columns a:vx. So I used, DBMS=XLSX but I strangely end up with a 2 sets of columns names which I don't know what I can do with.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Term&lt;/TD&gt;&lt;TD&gt;Day_Name_1&lt;/TD&gt;&lt;TD&gt;Day_Name_2&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;_43476&lt;/TD&gt;&lt;TD&gt;_43483&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;2.5%&lt;/TD&gt;&lt;TD&gt;2.6%&lt;/TD&gt;&lt;TD&gt;2.3%&lt;/TD&gt;&lt;TD&gt;2.4%&lt;/TD&gt;&lt;TD&gt;2.65%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;3.2%&lt;/TD&gt;&lt;TD&gt;3.4%&lt;/TD&gt;&lt;TD&gt;3.6%&lt;/TD&gt;&lt;TD&gt;3.1%&lt;/TD&gt;&lt;TD&gt;3.35%&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can transpose the table like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;transpose&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLFile &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLFileOut;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TERM;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _:; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;but I end up missing a large number of dates from the file. I'm in a large company and the file is updated frequently and used by other departments, so I can't change the excel file directly. Any thoughts as to why the column names are coming into SAS like this and any ideas for workarounds?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671020#M201466</guid>
      <dc:creator>LB3</dc:creator>
      <dc:date>2020-07-21T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Results importing Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671059#M201469</link>
      <description>&lt;P&gt;Show us proc contents of the SAS data set.&lt;/P&gt;
&lt;P&gt;SAS will have a variable name for every column that imported. If column VX was imported then ALL of the columns are in the data somewhere. But you may need to read the log about duplicate names or such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then show the code you used to "compress to get the dates". I suspect that you need to watch your log for the step where you compress things as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part of what you are seeing likely comes from "e is updated frequently and used by other departments" and the typical Excel user does not pay any attention to what Excel does for entering values.So you get mixes of column headings with "numeric" and character dates depending on who edits them.&lt;/P&gt;
&lt;P&gt;I might suggest saving the xlsx file to CSV and import the file that way. At least then you will see which columns get read how as a data step will be generated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Values like 43476 are likely to be the numeric dates with an Excel date format applied. Excel dates are the number of days since 1 Jan 1900.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 15:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671059#M201469</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-21T15:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Results importing Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671066#M201473</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;It's fairly large, but here's a sample of proc contents:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ProcContents.png" style="width: 696px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47448i971422285D74073A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ProcContents.png" alt="ProcContents.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 15:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671066#M201473</guid>
      <dc:creator>LB3</dc:creator>
      <dc:date>2020-07-21T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Results importing Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671070#M201475</link>
      <description>This actually does a fairly good job of transposing the data and formating the dates, but again, I'm missing a number of records/dates:&lt;BR /&gt;&lt;BR /&gt;proc transpose data=XLFileOut out=XLTrans;&lt;BR /&gt;by TERM;&lt;BR /&gt;var _:;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table FinalOuput as&lt;BR /&gt;select&lt;BR /&gt;Term&lt;BR /&gt;,COL1&lt;BR /&gt;,input(_LABEL_,best.)-21916 as DATE format=date9.&lt;BR /&gt;FROM XLTrans;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jul 2020 15:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671070#M201475</guid>
      <dc:creator>LB3</dc:creator>
      <dc:date>2020-07-21T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Results importing Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671095#M201487</link>
      <description>&lt;P&gt;Proc transpose really does not do well with a mix of numeric and character variables on a VAR statement.&lt;/P&gt;
&lt;P&gt;So if any of the variables you want from the VAR are character that would be one cause. Since Proc Import does not guarantee the type of any specific column then you would likely have columns that are character if the first twenty or so rows of values for the column are missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second your transpose will not include any of the "day_term" variables because the names do not start with _. So are those the "missing" variables?&lt;/P&gt;
&lt;P&gt;Your proc contents tells me that your original XLSX file likely has mixed values in the names. I see that column 9 and 14 apparently have actual date numeric values but the other columns from 2 to 326 do not.&lt;/P&gt;
&lt;P&gt;If this file is supposed to have one column per day of the year I would likely look at reading it with using a data step and either a CSV version of the data or PC File server.&lt;/P&gt;
&lt;P&gt;If my one column per date idea is correct a CSV could be read with something like:&lt;/P&gt;
&lt;PRE&gt;data want;
  infile "&amp;lt;path&amp;gt;\file.csv" dlm=',' lrecl=32000 obs=2;
  input term @;
  do date= '01Jan2019'd to '31Dec2019'd ; /* or what ever the last column should be*/
   input value @;
   output;
  end;
  format date date9.;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 22:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671095#M201487</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-22T22:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Results importing Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671112#M201490</link>
      <description>This seems to give me the Term and Date columns ok, but the value column is either null or 0. Am I missing a step?</description>
      <pubDate>Tue, 21 Jul 2020 16:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671112#M201490</guid>
      <dc:creator>LB3</dc:creator>
      <dc:date>2020-07-21T16:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Results importing Excel File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671641#M201710</link>
      <description>&lt;P&gt;Yes, you are missing any actual data.&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably the example data should include about 15 of the "date" columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First your shown transpose is throwing away every variable that does not start with _. So if you actually have any of those in FinalOutput there is more code you haven't shared. Second, does XLTrans have Any Col2, Col3 (or higher numbered).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest, if you haven't already, printing the first 3 rows of the XLFile data set. You may be surprised to find a lot of missing values. This could happen from people entering 2.3% as strings instead of 0.023 and assigning a percent display in Excel. The other thing to check with your 0 values is what Format is currently assigned. If the format is something like f3.0 then values less than 0.05 (less than 5%) will display as 0.&lt;/P&gt;
&lt;P&gt;Run this code a look in the log for the result as one example.&lt;/P&gt;
&lt;PRE&gt;data _null_;
   x=0.023;
   put 'F3.0 format: ' x= f3.0  'with Percent8.1 format: ' x= percent8.1;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 23:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Strange-Results-importing-Excel-File/m-p/671641#M201710</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-22T23:12:33Z</dc:date>
    </item>
  </channel>
</rss>

