<?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: Input variable with spaces help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Input-variable-with-spaces-help/m-p/554099#M154121</link>
    <description>&lt;P&gt;I don't believe that X is an acceptable parameter as you are using it:&lt;/P&gt;
&lt;PRE&gt;Infile Inovalon dlm=','X;&lt;/PRE&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;Infile Inovalon dlm=',';&lt;/PRE&gt;
&lt;P&gt;If you borrowed from code with something like dlm='09'x&amp;nbsp; then that indicates the hexadecimal value of the TAB character since tabs are very hard to actually see/ use in code.&lt;/P&gt;
&lt;P&gt;If you want to use variable names with ugly spaces then they require an N after them all the time to indicate "name literal".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; Input memberid memberkey membername $ "Bucketed Line of Business"n $ &lt;BR /&gt;       "Date of Enrollment Segment"n;&lt;/PRE&gt;
&lt;P&gt;I would suggest thinking very carefully about using those names as you also have to have the option VALIDVARNAME=any in effect.&lt;/P&gt;
&lt;P&gt;If you are using those in an attempt to have pretty output consider assigning labels, which can be much longer. For example:&lt;/P&gt;
&lt;PRE&gt;Data membership2;
   Infile Inovalon dlm=',';
   Input memberid memberkey membername $ LOB $ DateEnr;
   label 
      LOB = "Bucketed Line of Business"
      DateEnr = "Date of Enrollment Segment"
   ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It helps to paste code and log results into a code box opened using the forum's {I} or "running man" icon to preserve formatting.&lt;/P&gt;
&lt;P&gt;If you look at your error message the ______ is not under the location it was in the log you copied from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 22:51:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-04-25T22:51:40Z</dc:date>
    <item>
      <title>Input variable with spaces help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-variable-with-spaces-help/m-p/554096#M154120</link>
      <description>&lt;P&gt;Hi, I am new to SAS and I keep getting errors when I try to run the below code. I do not know why it will not run. I am using SAS EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data membership2;&lt;BR /&gt;Infile Inovalon dlm=','X;&lt;BR /&gt;Input memberid memberkey membername $ "Bucketed Line of Business" $ "Date of Enrollment Segment";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;24&lt;BR /&gt;25 GOPTIONS ACCESSIBLE;&lt;BR /&gt;26 Data membership2;&lt;BR /&gt;27 Infile Inovalon dlm=','X;&lt;BR /&gt;28 Input memberid memberkey membername $ "Bucketed Line of Business" $ "Date of Enrollment Segment";&lt;BR /&gt;___________________________&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, an integer constant, arrayname, #, &amp;amp;, (, +, /, //, :, ;, ?, @,&lt;BR /&gt;@@, ~.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;29 run;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 22:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-variable-with-spaces-help/m-p/554096#M154120</guid>
      <dc:creator>Jesusismygrace</dc:creator>
      <dc:date>2019-04-25T22:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Input variable with spaces help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-variable-with-spaces-help/m-p/554099#M154121</link>
      <description>&lt;P&gt;I don't believe that X is an acceptable parameter as you are using it:&lt;/P&gt;
&lt;PRE&gt;Infile Inovalon dlm=','X;&lt;/PRE&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;Infile Inovalon dlm=',';&lt;/PRE&gt;
&lt;P&gt;If you borrowed from code with something like dlm='09'x&amp;nbsp; then that indicates the hexadecimal value of the TAB character since tabs are very hard to actually see/ use in code.&lt;/P&gt;
&lt;P&gt;If you want to use variable names with ugly spaces then they require an N after them all the time to indicate "name literal".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; Input memberid memberkey membername $ "Bucketed Line of Business"n $ &lt;BR /&gt;       "Date of Enrollment Segment"n;&lt;/PRE&gt;
&lt;P&gt;I would suggest thinking very carefully about using those names as you also have to have the option VALIDVARNAME=any in effect.&lt;/P&gt;
&lt;P&gt;If you are using those in an attempt to have pretty output consider assigning labels, which can be much longer. For example:&lt;/P&gt;
&lt;PRE&gt;Data membership2;
   Infile Inovalon dlm=',';
   Input memberid memberkey membername $ LOB $ DateEnr;
   label 
      LOB = "Bucketed Line of Business"
      DateEnr = "Date of Enrollment Segment"
   ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It helps to paste code and log results into a code box opened using the forum's {I} or "running man" icon to preserve formatting.&lt;/P&gt;
&lt;P&gt;If you look at your error message the ______ is not under the location it was in the log you copied from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 22:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-variable-with-spaces-help/m-p/554099#M154121</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-25T22:51:40Z</dc:date>
    </item>
  </channel>
</rss>

