<?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 Blanks in column name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851459#M336544</link>
    <description>&lt;P&gt;Hi, I uploaded a CSV file to SAS Studio, but this file has a column name with blank between two words. It causes problems when writing code referring to this variable. Is there a way to rename the variable to remove the blank so that I can refer to this column in my code? Thnak you!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 02:10:57 GMT</pubDate>
    <dc:creator>znhnm</dc:creator>
    <dc:date>2022-12-29T02:10:57Z</dc:date>
    <item>
      <title>Blanks in column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851459#M336544</link>
      <description>&lt;P&gt;Hi, I uploaded a CSV file to SAS Studio, but this file has a column name with blank between two words. It causes problems when writing code referring to this variable. Is there a way to rename the variable to remove the blank so that I can refer to this column in my code? Thnak you!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 02:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851459#M336544</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2022-12-29T02:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Blanks in column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851466#M336547</link>
      <description>&lt;P&gt;There are at least three ways of dealing with this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;remove the blanks from the CSV file and re-import the data&lt;/LI&gt;
&lt;LI&gt;run this statement to change the default behaviour (required in every submit): options validvarname = v7;&lt;/LI&gt;
&lt;LI&gt;rename the column once imported:&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  rename 'My Column with blanks'n = My_Column_without_blanks;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 29 Dec 2022 03:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851466#M336547</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-29T03:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Blanks in column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851485#M336550</link>
      <description>&lt;P&gt;Don't use proc import, write a data step reading the file.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 07:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851485#M336550</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-12-29T07:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Blanks in column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851490#M336554</link>
      <description>&lt;P&gt;Don't use PROC IMPORT, write the DATA step yourself. IMPORT is not needed for text files and causes unnecessary problems. See thousands of posts here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a stopgap measure, set&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before PROC IMPORT.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 07:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Blanks-in-column-name/m-p/851490#M336554</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-29T07:54:06Z</dc:date>
    </item>
  </channel>
</rss>

