<?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 Not able to extract fields from oracle with number as initial character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25373#M4427</link>
    <description>I am using  a select * query to extract data from oracle to create a sas dataset.&lt;BR /&gt;
The problem is, oracle is containing column name  with number as initial character or special characters.In the SAS dataset the numebr or special characters are replaced by "_".For e.g. If oracle field name is 1employee* then in SAS dataset the field name will be _employee_.&lt;BR /&gt;
Things that I have tried out:&lt;BR /&gt;
1. I have used the option validvarname = any.It gives warning which is not acceptable.&lt;BR /&gt;
2. SYSERR cannot be used as I am using it to log error message.&lt;BR /&gt;
3. Printing a part of log to other log also doesnt help.&lt;BR /&gt;
&lt;BR /&gt;
Please provide some suggestion.&lt;BR /&gt;
Thanks in advance</description>
    <pubDate>Thu, 30 Apr 2009 06:35:24 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-30T06:35:24Z</dc:date>
    <item>
      <title>Not able to extract fields from oracle with number as initial character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25373#M4427</link>
      <description>I am using  a select * query to extract data from oracle to create a sas dataset.&lt;BR /&gt;
The problem is, oracle is containing column name  with number as initial character or special characters.In the SAS dataset the numebr or special characters are replaced by "_".For e.g. If oracle field name is 1employee* then in SAS dataset the field name will be _employee_.&lt;BR /&gt;
Things that I have tried out:&lt;BR /&gt;
1. I have used the option validvarname = any.It gives warning which is not acceptable.&lt;BR /&gt;
2. SYSERR cannot be used as I am using it to log error message.&lt;BR /&gt;
3. Printing a part of log to other log also doesnt help.&lt;BR /&gt;
&lt;BR /&gt;
Please provide some suggestion.&lt;BR /&gt;
Thanks in advance</description>
      <pubDate>Thu, 30 Apr 2009 06:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25373#M4427</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-30T06:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to extract fields from oracle with number as initial character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25374#M4428</link>
      <description>Just curious - what problem are you looking to solve given the SAS system requirement for a non-numeric first char for SAS variables?  Best to explain your INPUT and desired OUTPUT condition, with sample data, similar to what you have.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 30 Apr 2009 18:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25374#M4428</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-30T18:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to extract fields from oracle with number as initial character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25375#M4429</link>
      <description>There are two problems that I am facing:&lt;BR /&gt;
&lt;BR /&gt;
1. Input column name from oracle : 1employee&lt;BR /&gt;
   Currently SAS gives output like : _employee&lt;BR /&gt;
   Expected Result : 1employee&lt;BR /&gt;
&lt;BR /&gt;
2. Input column name from oracle : emp*loyee&lt;BR /&gt;
   Currently SAS gives output like : emp_loyee&lt;BR /&gt;
   Expected Result : emp*loyee&lt;BR /&gt;
&lt;BR /&gt;
By using option validvarname = any the problem gets solved, but it gives warning in log. I dont want that.</description>
      <pubDate>Mon, 04 May 2009 04:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25375#M4429</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-04T04:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to extract fields from oracle with number as initial character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25376#M4430</link>
      <description>Given the SAS architecture limitation, I do not believe you have a choice with naming columns, and more accurately, the problem is circumvented, not solved, with the SAS OPTIONS setting VALIDVARNAME=.&lt;BR /&gt;
&lt;BR /&gt;
From the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website, I found some SAS-host DOC reference and also a SAS conference paper on the topic.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS System Option VALIDVARNAME=&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000279245.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000279245.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Avoiding Common Traps When Accessing RDBMS Data&lt;BR /&gt;
Mike Rhoads, Westat, Rockville, MD&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/141-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/141-2009.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 04 May 2009 12:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-extract-fields-from-oracle-with-number-as-initial/m-p/25376#M4430</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-04T12:51:54Z</dc:date>
    </item>
  </channel>
</rss>

