<?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: Rename Column  and Results in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rename-Column-and-Results/m-p/368915#M87988</link>
    <description>&lt;P&gt;Your code didn't rename variables but, rather, has improper code to establish new values for the variables JAN, FEB, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have to guess that you log showed that the code didn't run or replace the file. Additionally, it doesn't look like you could have obtained the results you posted, since the file wasn't limited to either LF or DF. The only way it could list the numbers shown as variable names is if those were labels that were assigned to JAN, FEB, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 19:37:10 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-06-20T19:37:10Z</dc:date>
    <item>
      <title>Rename Column  and Results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Column-and-Results/m-p/368908#M87987</link>
      <description>&lt;P&gt;&amp;nbsp;I renamed&amp;nbsp; my columns from 01-12 to Jan-Dec but the PROC PRINT results does not align the results with the fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Note] the Results table list the months as 1-12 and not _01, _02, etc.&amp;nbsp; -But there are listed as numeric variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RESULTS; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RESULTS; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;JAN = _01;&lt;/P&gt;&lt;P&gt;FEB = _02;&lt;/P&gt;&lt;P&gt;MAR = _03;&lt;/P&gt;&lt;P&gt;APR = _04;&lt;/P&gt;&lt;P&gt;MAY = _05;&lt;/P&gt;&lt;P&gt;JUN = _06;&lt;/P&gt;&lt;P&gt;JUL = _07;&lt;/P&gt;&lt;P&gt;AUG = _08;&lt;/P&gt;&lt;P&gt;SEP = _09;&lt;/P&gt;&lt;P&gt;OCT = _10;&lt;/P&gt;&lt;P&gt;NOV = _11;&lt;/P&gt;&lt;P&gt;DEC = _12;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; LOADFAC DIVRSFAC; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; RESULTS; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IF&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; STATISTIC = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'LF'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;THEN&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUTPUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; LOADFAC; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ELSE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IF&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; STATISTIC = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'DF'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;THEN&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUTPUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DIVRSFAC; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;PRINT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DOUBLE&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=DIVRSFAC; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;VAR&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; COSSNAME STATISTIC JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;FORMAT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TITLE&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'2016 MONTHLY CLASS '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TITLE2&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'BASED ON SALES '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;PRINT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DOUBLE&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=LOADFAC; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;VAR&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; COSSNAME STATISTIC JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;FORMAT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC ; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TITLE&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'2016 MARYLAND MONTHLY '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TITLE2&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'BASED ON SALES'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;IMG width="791" height="236" title="results.jpg" alt="results.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/9579i10681E7F9D617B5C/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 19:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Column-and-Results/m-p/368908#M87987</guid>
      <dc:creator>tobyfarms</dc:creator>
      <dc:date>2017-06-20T19:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Column  and Results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Column-and-Results/m-p/368915#M87988</link>
      <description>&lt;P&gt;Your code didn't rename variables but, rather, has improper code to establish new values for the variables JAN, FEB, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have to guess that you log showed that the code didn't run or replace the file. Additionally, it doesn't look like you could have obtained the results you posted, since the file wasn't limited to either LF or DF. The only way it could list the numbers shown as variable names is if those were labels that were assigned to JAN, FEB, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 19:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Column-and-Results/m-p/368915#M87988</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-06-20T19:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Column  and Results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Column-and-Results/m-p/368916#M87989</link>
      <description>&lt;P&gt;Unless I'm doing something wrong, your results are too small for me to read or even see, so maybe I'm not clear on the actual problem you see.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your first data step, you are NOT renaming the columns. You are assigning numbers to the variables JAN, FEB, &lt;EM&gt;etc&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 19:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Column-and-Results/m-p/368916#M87989</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-06-20T19:39:15Z</dc:date>
    </item>
  </channel>
</rss>

