<?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: Name unnamed columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669495#M200847</link>
    <description>&lt;P&gt;Explain what you are showing us. What SAS interface created this? (Base SAS, Enterprise Guide, University Edition, &lt;EM&gt;etc&lt;/EM&gt;.)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this even a SAS data set you are showing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS, you cannot have variables/columns that are unnamed.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 15:04:05 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-07-15T15:04:05Z</dc:date>
    <item>
      <title>Name unnamed columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669493#M200845</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in the middle of data cleaning process and some of the columns in my data set are unnamed. I know how to change already existing name but how to do that with those unnamed? Example I want to name those columns in yeallow circle as: first date as DATE1 and the other as DATE2. How do I do that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasowiczka123_0-1594825089157.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47187i07D9B613A62D3D45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sasowiczka123_0-1594825089157.png" alt="sasowiczka123_0-1594825089157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 14:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669493#M200845</guid>
      <dc:creator>sasowiczka123</dc:creator>
      <dc:date>2020-07-15T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Name unnamed columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669495#M200847</link>
      <description>&lt;P&gt;Explain what you are showing us. What SAS interface created this? (Base SAS, Enterprise Guide, University Edition, &lt;EM&gt;etc&lt;/EM&gt;.)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this even a SAS data set you are showing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS, you cannot have variables/columns that are unnamed.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669495#M200847</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-15T15:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Name unnamed columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669499#M200848</link>
      <description>&lt;P&gt;Since a SAS data set will &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;never &lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;have a variable without a name I find your question extremely odd. It appears that the variables you are referencing are named F4 and F5. One suspects that the data source you read had a blank row before the actual column headings and so you think the first "value" recorded is the variable name. But since those two variables are dates you cannot have a value like "Date1".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might go back to the source file that you read and examine it carefully. If there is a blank row, or most of the "headers" appear on the second row of the file, delete the blank values on the first row moving the headers into the first row. Then re-import your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have a SAS data set you can rename columns in a number of ways, Proc Data sets with a Modify block renaming variables, manually by clicking on column properties in the data set view&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669499#M200848</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-15T16:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Name unnamed columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669518#M200858</link>
      <description>&lt;P&gt;Yes, you were right. I tried importing the data set again. I'm importing from xlsx file and I started from the third row. Now the problem is gone. I'm using sas enterprise guide. This code solved my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="D:\filepath\filename.xlsx" 
dbms=xlsx
out=test
replace; 
range="Sheet1$A3:0";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669518#M200858</guid>
      <dc:creator>sasowiczka123</dc:creator>
      <dc:date>2020-07-15T15:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Name unnamed columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669531#M200863</link>
      <description>Is it possible what you're seeing there are labels rather than variable names, since you have a variable named Assignee/Applicant First?&lt;BR /&gt;&lt;BR /&gt;I would suggest adding the following before your IMPORT. It ensures that your variables are read in with cleaner names for programming. &lt;BR /&gt;&lt;BR /&gt;options validvarname=v7;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Name-unnamed-columns/m-p/669531#M200863</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-07-15T15:49:45Z</dc:date>
    </item>
  </channel>
</rss>

