<?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: dates used as column names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168804#M264078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, why do you want them as columns at all? As you seem to already experienced yourself, it's not very convenient, neither for data manipulation programming nor reporting.&lt;/P&gt;&lt;P&gt;You say you can't work it. What have you tried? Showing som code might help.&lt;/P&gt;&lt;P&gt;You could achieve this by setting VALIDVARNAME = ANY, and use the name literal when specifying your column names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 10:18:14 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2014-02-10T10:18:14Z</dc:date>
    <item>
      <title>dates used as column names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168803#M264077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to put some dates such as '01jan1999'd as column name, but I can't work it out, is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes I would like to rename adjacent columns from&amp;nbsp; '01jan1999'd&amp;nbsp; to&amp;nbsp; '01jan2009'd, is it possible without writing alll the names?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternatively I am thinking about putting the dates as records in a column and then doing a transpose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but also here is there a fast method to put these names, like if it were a drag in excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 08:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168803#M264077</guid>
      <dc:creator>progster</dc:creator>
      <dc:date>2014-02-10T08:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: dates used as column names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168804#M264078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, why do you want them as columns at all? As you seem to already experienced yourself, it's not very convenient, neither for data manipulation programming nor reporting.&lt;/P&gt;&lt;P&gt;You say you can't work it. What have you tried? Showing som code might help.&lt;/P&gt;&lt;P&gt;You could achieve this by setting VALIDVARNAME = ANY, and use the name literal when specifying your column names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168804#M264078</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-10T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: dates used as column names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168805#M264079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that it's not convenient, but in this analysis is very helpful to know the exact month, e.g. 01march2002 instead of month47.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a trial would be like this, but it does not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 15px; font-family: 'Courier New'; color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 15px; font-family: 'Courier New'; color: #000000; background-color: #ffffff;"&gt; base(&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px; font-family: 'Courier New'; color: #0000ff; background-color: #ffffff;"&gt;rename&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px; font-family: 'Courier New'; color: #000000; background-color: #ffffff;"&gt;=(month1-month180=&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; '01jan1999'n&amp;nbsp; to&amp;nbsp; '01jan2009'n&lt;/SPAN&gt;));set base;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168805#M264079</guid>
      <dc:creator>progster</dc:creator>
      <dc:date>2014-02-10T11:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: dates used as column names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168806#M264080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems easier to transpose your data, and the apply your date transformation on colmn values instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168806#M264080</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-10T11:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: dates used as column names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168807#M264081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS enumerated variable lists can be incremented by 1 or -1 only as far as I know.&amp;nbsp; You seem to want an arbitrary increment in this case MONTH.&amp;nbsp; That's find but it does not work with enumerated variable lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it were me I would keep the months/dates/ whatever as rows as long as possible.&amp;nbsp; Then when you need to have the months/dates/whatever become variables transpose to variables and LABEL the variables in a way that communicates the details of the data that you have placed in the meta data.&amp;nbsp; PROC TRANSPOSE statement IDLABEL will allow you to assign labels to the new variables using data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a name prefix list you don't even have to know how many.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dates-used-as-column-names/m-p/168807#M264081</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-02-10T11:55:01Z</dc:date>
    </item>
  </channel>
</rss>

