<?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: xls column name with blank space in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137145#M11112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you're in the right place...Michelle has forgotten more about Enterprise Guide than most of us know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep asking questions!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jan 2014 00:03:51 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2014-01-11T00:03:51Z</dc:date>
    <item>
      <title>xls column name with blank space</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137140#M11107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am very new to SAS and trying to read an xls file and using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname orionxls 'sales.xls';&lt;/P&gt;&lt;P&gt;data work.subset2;&lt;/P&gt;&lt;P&gt;set orionxls.'Australia$'n;&lt;/P&gt;&lt;P&gt;where Job_Title contains 'Rep';&lt;/P&gt;&lt;P&gt;keep First_Name Last_Name Salary Job_Title Hire_Date;&lt;/P&gt;&lt;P&gt;label Job_Title='Sales Title' Hire_Date='Date Hired';&lt;/P&gt;&lt;P&gt;format Salary comma10. Hire_Date weekdate.; run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code is not functioning because in excel file column name is Job Title (with blank space).&lt;/P&gt;&lt;P&gt;My question is how to write the column name with blank space in such type of code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Dani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 09:35:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137140#M11107</guid>
      <dc:creator>danimian</dc:creator>
      <dc:date>2014-01-10T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: xls column name with blank space</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137141#M11108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you are trying to run the program in SAS Enterprise Guide? If so, you will need to change the columns that have a space in it to be written as named literal variables. So instead of Job_Title, it will be "Job Title"n which treats the string as a variable. Don't forget the n as this tells the compiler to treat it as the name literal rather than a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other columns: First_Name, Last_Name, Hire_Date in all the other statements will need to be updated too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137141#M11108</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2014-01-10T10:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: xls column name with blank space</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137142#M11109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is working now.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137142#M11109</guid>
      <dc:creator>danimian</dc:creator>
      <dc:date>2014-01-10T10:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: xls column name with blank space</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137143#M11110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. I teach the SAS Programming 1 course for SAS Education in Australia and am familiar with this piece of code and the issue of running it in Enterprise Guide. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, it's due to a SAS System option, validvarname having different values in Foundation SAS and SAS Enterprise Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear your code is running now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137143#M11110</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2014-01-10T10:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: xls column name with blank space</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137144#M11111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for more details and quick help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right, this code is from Prog. 1 examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Newbie-SAS-Programmer and in high learning mode &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 13:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137144#M11111</guid>
      <dc:creator>danimian</dc:creator>
      <dc:date>2014-01-10T13:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: xls column name with blank space</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137145#M11112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you're in the right place...Michelle has forgotten more about Enterprise Guide than most of us know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep asking questions!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 00:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/xls-column-name-with-blank-space/m-p/137145#M11112</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2014-01-11T00:03:51Z</dc:date>
    </item>
  </channel>
</rss>

