<?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: How to keep SAS from adding &amp;quot;_&amp;quot; (underscore) to field names? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22049#M3573</link>
    <description>OK - problem identified - there was a space in front of the field names in excel - and SAS will add the underscore to any illegally named field.</description>
    <pubDate>Wed, 22 Apr 2009 16:51:17 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-22T16:51:17Z</dc:date>
    <item>
      <title>How to keep SAS from adding "_" (underscore) to field names?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22046#M3570</link>
      <description>I am importing table from Excel.&lt;BR /&gt;
Field names such as F123, F191, etc&lt;BR /&gt;
In SAS Data table names appear as "F123", "F191" etc&lt;BR /&gt;
But when using them, SAS expects names to be "_F1232", "_F191", etc.&lt;BR /&gt;
&lt;BR /&gt;
How can I set it up to not preceed the name with "_"?&lt;BR /&gt;
&lt;BR /&gt;
thanks!</description>
      <pubDate>Wed, 22 Apr 2009 15:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22046#M3570</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-22T15:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep SAS from adding "_" (underscore) to field names?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22047#M3571</link>
      <description>Please share more info about just how you are "importing" your data, and include some specific SAS log (pasted in your post reply) to more accurately explain the SAS problem you are experiencing.  It does not make sense that SAS would read up a data column into a SAS variable and not reference the variable as expected.  Do remember though that SAS variable names must start with a character.&lt;BR /&gt;
&lt;BR /&gt;
Below please find a useful Google advanced search argument against the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website where you may find relative topic information and product documentation:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
sas variable names start character site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.2 Language Reference: Concepts - Names in the SAS Language&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000998953.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000998953.htm&lt;/A&gt;</description>
      <pubDate>Wed, 22 Apr 2009 15:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22047#M3571</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-22T15:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep SAS from adding "_" (underscore) to field names?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22048#M3572</link>
      <description>I'm importing using the "Import Data" wizard under the "File" menu option. Standard excel file.&lt;BR /&gt;
The SAS Data table is created and when I view it, I see my field names (column headers) as "F123", F124", etc&lt;BR /&gt;
&lt;BR /&gt;
When I do a Proc print, the field names are "_F123" etc.&lt;BR /&gt;
&lt;BR /&gt;
Here is the log:&lt;BR /&gt;
&lt;BR /&gt;
NOTE: SAS initialization used:&lt;BR /&gt;
      real time           8.70 seconds&lt;BR /&gt;
      cpu time            1.73 seconds&lt;BR /&gt;
&lt;BR /&gt;
NOTE: PARTIAL.GLT was successfully created.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1    proc print data =partial.glt;&lt;BR /&gt;
2    run;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: There were 1555 observations read from the data set PARTIAL.GLT.&lt;BR /&gt;
NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;
      real time           1.09 seconds&lt;BR /&gt;
      cpu time            0.14 seconds</description>
      <pubDate>Wed, 22 Apr 2009 15:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22048#M3572</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-22T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep SAS from adding "_" (underscore) to field names?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22049#M3573</link>
      <description>OK - problem identified - there was a space in front of the field names in excel - and SAS will add the underscore to any illegally named field.</description>
      <pubDate>Wed, 22 Apr 2009 16:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-keep-SAS-from-adding-quot-quot-underscore-to-field-names/m-p/22049#M3573</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-22T16:51:17Z</dc:date>
    </item>
  </channel>
</rss>

