<?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: 'Column Name'n as headers when importing .xlsx in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137966#M11136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone who is interested, although the original problem still exists, I used this simple workaround to avoid having to modify each variable name manually in the Import Wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Create a new row under the first row in the spreadsheet (which contains your variable names)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Use =substitute("A1"," ","_") in the cell below each cell in the original variable names row&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Copy this newly created row and Paste Special &amp;gt; Values right over what you just copied.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Delete the original column headers, save the workbook, and go do the import in Enterprise Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine for me, as I assume Enterprise Guides sees the incoming variable names as already being SAS-compliant, so it doesn't try to perform it's own modifications on the variable names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 18:24:28 GMT</pubDate>
    <dc:creator>sbrundage</dc:creator>
    <dc:date>2014-04-29T18:24:28Z</dc:date>
    <item>
      <title>'Column Name'n as headers when importing .xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137963#M11133</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 a .xlsx spreadsheet that I am trying to import using Enterprise Guide.&amp;nbsp; I select the data source in Step 1 of the Import Wizard, then, in Step 2, I make sure that both "First row of range contains field names" and "Rename columns to comply with SAS naming conventions" are checked.&amp;nbsp; Then, in Step 3, "Define Field Attributes", all of the values in the "Name" column (except those that didn't contain a space in the source) are being set to something like 'Column Name'n, instead of Column_Name, which is what I would expect.&amp;nbsp; If I copy any header cell from the source and paste it into Notepad, I see that each column header has a line break at the end.&amp;nbsp; I tried trimming them using excel's trim(), but the line break seems to be added in again.&amp;nbsp; Also, it's odd that this problem only arises for those column headers that contain a space character in the source.&amp;nbsp; I have a column in the source called PID.&amp;nbsp; If I copy it into notepad, I still see the line return character, but SAS EG imports it and names it properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciate any help you all can provide.&amp;nbsp; I'm using Enterprise Guide 6.100.0.4025 on a 64-bit Windows 7 machine with Microsoft Excel 2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 17:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137963#M11133</guid>
      <dc:creator>sbrundage</dc:creator>
      <dc:date>2014-04-29T17:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'Column Name'n as headers when importing .xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137964#M11134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try running Option validvarname=V7 and then reimport process?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 17:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137964#M11134</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-29T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'Column Name'n as headers when importing .xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137965#M11135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response, Reeza.&amp;nbsp; I did that but it didn't seem to work.&amp;nbsp; I read elsewhere about your solution, and the directions noted there mentioned going into Tools &amp;gt; Options &amp;gt; Tasks General and specifying the validvarname there, but either my version of EG is too old or too new, because I see no additional SAS code section there.&amp;nbsp; Anyway, thanks again.&amp;nbsp; For now, I'm just going through my 80 or so columns and renaming them manually in Step 3.&amp;nbsp; I swear the import worked just fine less than a week ago, so maybe something in my environment has changed recently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137965#M11135</guid>
      <dc:creator>sbrundage</dc:creator>
      <dc:date>2014-04-29T18:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: 'Column Name'n as headers when importing .xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137966#M11136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone who is interested, although the original problem still exists, I used this simple workaround to avoid having to modify each variable name manually in the Import Wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Create a new row under the first row in the spreadsheet (which contains your variable names)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Use =substitute("A1"," ","_") in the cell below each cell in the original variable names row&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Copy this newly created row and Paste Special &amp;gt; Values right over what you just copied.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Delete the original column headers, save the workbook, and go do the import in Enterprise Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine for me, as I assume Enterprise Guides sees the incoming variable names as already being SAS-compliant, so it doesn't try to perform it's own modifications on the variable names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137966#M11136</guid>
      <dc:creator>sbrundage</dc:creator>
      <dc:date>2014-04-29T18:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: 'Column Name'n as headers when importing .xlsx</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137967#M11137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a new behavior in 6.1.&amp;nbsp; 5.1 Added underscores for us. I had many 5.1 projects break because of it.&amp;nbsp; I reported it to Chris Hemendinger at the Global Forum and he suggested that I submit it as an issue to the EG team.&amp;nbsp; I haven't gotten around to that yet.&amp;nbsp; In the meantime, I just manually added underscores in my import tasks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Column-Name-n-as-headers-when-importing-xlsx/m-p/137967#M11137</guid>
      <dc:creator>Technolero</dc:creator>
      <dc:date>2014-04-29T18:34:18Z</dc:date>
    </item>
  </channel>
</rss>

