<?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: Trouble with IMPORT xlsx with starting line and variables names in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169332#M43786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The lay-out look to be a SAS report of a dataset displayed with AMO in Excel.&amp;nbsp; Why would you try to convert a SAS dataset to a SAS dataset when the viewer/browser is just Excel. &lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2014 17:37:04 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-05-22T17:37:04Z</dc:date>
    <item>
      <title>Trouble with IMPORT xlsx with starting line and variables names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169331#M43785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some trouble importing a table that looks that way :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sans titre.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6409_Sans titre.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a table SAS with data from line 4 AND get variables names on line 3. But I can't make it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried :&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;import&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;out&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=xll.input&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;datafile&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: purple; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;"/data/&amp;amp;input_drf."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;=xlsx &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;REPLACE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;SHEET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: purple; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;'Clients'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN-US;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New';"&gt;datarow&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;4&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;But it gets me "The SAS SYSTEM" "B" "C" etc as variables. Plus, the ID became of kind "4.3080236E12".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Then I tried to add GETNAMES=YES but it produced the very same result...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Could you please help me ? Thanks a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 16:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169331#M43785</guid>
      <dc:creator>GuiVtzl</dc:creator>
      <dc:date>2014-05-22T16:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with IMPORT xlsx with starting line and variables names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169332#M43786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The lay-out look to be a SAS report of a dataset displayed with AMO in Excel.&amp;nbsp; Why would you try to convert a SAS dataset to a SAS dataset when the viewer/browser is just Excel. &lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 17:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169332#M43786</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-22T17:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with IMPORT xlsx with starting line and variables names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169333#M43787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Jaap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fact the reason is simple : I receive that excel as an input from another department in my company, and I can only receive it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I absolutely need to import that excel file in SAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 07:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169333#M43787</guid>
      <dc:creator>GuiVtzl</dc:creator>
      <dc:date>2014-05-23T07:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with IMPORT xlsx with starting line and variables names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169334#M43788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understandable than that guy of the other department did used the AMO and has all that in a SAS-dataset. &lt;BR /&gt;He could have send you the SAS dataset. Now you are busy to recreate that one. In the same company corporate cooperation....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most easy approach would be try to export the selected area you need as a CSV and use that.&amp;nbsp; Not that much work and a datastep is coded fast.&lt;/P&gt;&lt;P&gt;The ID field is obviously having numbers but you could need to do that as chars. The numeric precision is not reliable above some 12 digits.&lt;BR /&gt;ID is for identification I assume something like custom number. Calculations as mean skewness not likely to be expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 07:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169334#M43788</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-23T07:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with IMPORT xlsx with starting line and variables names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169335#M43789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Yes that is incredible..And they do nothing to make the task easier.&lt;/P&gt;&lt;P&gt;Above all, I need to automatize a whole process (beginning with the import of that xlsx).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well converting it to CSV make it not completely automatized but at least I can run the rest of my program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did convert it to CSV but for ID I have the same trouble, it becomes digits with E+12 types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 07:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169335#M43789</guid>
      <dc:creator>GuiVtzl</dc:creator>
      <dc:date>2014-05-23T07:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with IMPORT xlsx with starting line and variables names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169336#M43790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you are still using it as number not char and there 13 digits.&amp;nbsp; reading defining it as char (length eg $16) or using a format with 15 digits would help.&lt;BR /&gt;But you are at the end of the numeric precision with numbers, They could go off on the last low values. (sas note 123) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 08:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-IMPORT-xlsx-with-starting-line-and-variables-names/m-p/169336#M43790</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-23T08:12:23Z</dc:date>
    </item>
  </channel>
</rss>

