<?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 Replacing period in column name using PROC SQL in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Replacing-period-in-column-name-using-PROC-SQL/m-p/479646#M14976</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm importing data from a database view using a proc SQL statement.&amp;nbsp; Unfortunately I have no power over column names, and quite a number of the column names include a period in the name (e.g. VARIABLE.NAME).&amp;nbsp; I know that SAS will automatically rename the variable name if it contains non-standard characters.&amp;nbsp; Is there some option that I can use where SAS will replace the "." in a column name with an underscore as well when creating the dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I'm looking at having to use string literal for all SAS variable names that include a period.&amp;nbsp; I'd rather not do that since I already have pre-created formats for correctly named SAS variables. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE RANDOM_NAME
AS SELECT * FROM Database.View;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 18:57:03 GMT</pubDate>
    <dc:creator>ssbxvm</dc:creator>
    <dc:date>2018-07-19T18:57:03Z</dc:date>
    <item>
      <title>Replacing period in column name using PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Replacing-period-in-column-name-using-PROC-SQL/m-p/479646#M14976</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm importing data from a database view using a proc SQL statement.&amp;nbsp; Unfortunately I have no power over column names, and quite a number of the column names include a period in the name (e.g. VARIABLE.NAME).&amp;nbsp; I know that SAS will automatically rename the variable name if it contains non-standard characters.&amp;nbsp; Is there some option that I can use where SAS will replace the "." in a column name with an underscore as well when creating the dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I'm looking at having to use string literal for all SAS variable names that include a period.&amp;nbsp; I'd rather not do that since I already have pre-created formats for correctly named SAS variables. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE RANDOM_NAME
AS SELECT * FROM Database.View;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 18:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Replacing-period-in-column-name-using-PROC-SQL/m-p/479646#M14976</guid>
      <dc:creator>ssbxvm</dc:creator>
      <dc:date>2018-07-19T18:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing period in column name using PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Replacing-period-in-column-name-using-PROC-SQL/m-p/479665#M14977</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you have this option set, SAS should convert it to the appropriate names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222014"&gt;@ssbxvm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm importing data from a database view using a proc SQL statement.&amp;nbsp; Unfortunately I have no power over column names, and quite a number of the column names include a period in the name (e.g. VARIABLE.NAME).&amp;nbsp; I know that SAS will automatically rename the variable name if it contains non-standard characters.&amp;nbsp; Is there some option that I can use where SAS will replace the "." in a column name with an underscore as well when creating the dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now I'm looking at having to use string literal for all SAS variable names that include a period.&amp;nbsp; I'd rather not do that since I already have pre-created formats for correctly named SAS variables. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE RANDOM_NAME
AS SELECT * FROM Database.View;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 19:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Replacing-period-in-column-name-using-PROC-SQL/m-p/479665#M14977</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-19T19:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing period in column name using PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Replacing-period-in-column-name-using-PROC-SQL/m-p/479727#M14981</link>
      <description>I knew it had to be something simple. Thank you!</description>
      <pubDate>Thu, 19 Jul 2018 21:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Replacing-period-in-column-name-using-PROC-SQL/m-p/479727#M14981</guid>
      <dc:creator>ssbxvm</dc:creator>
      <dc:date>2018-07-19T21:34:01Z</dc:date>
    </item>
  </channel>
</rss>

