<?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 Variable with functions SAS Visual Analytics in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729511#M227020</link>
    <description>&lt;P&gt;Where canI insert that code in VA?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 23:47:14 GMT</pubDate>
    <dc:creator>Davidsas111</dc:creator>
    <dc:date>2021-03-26T23:47:14Z</dc:date>
    <item>
      <title>Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/728691#M226725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to know if it's possible to rename a variable with a function.&lt;/P&gt;&lt;P&gt;In particular I need to rename 32 variables with the days past from the today's date. Ex: var1=now(), var2=now()-2 etc.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 08:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/728691#M226725</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-24T08:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729252#M226916</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;rename (or label?) VAR1 to %sysfunc(today(),date9.)&lt;/P&gt;
&lt;P&gt;rename (or label?) VAR2 to %sysfunc(putn(%eval(%sysfunc(today())-1),date9.))&lt;/P&gt;
&lt;P&gt;rename (or label?) VAR3 to %sysfunc(putn(%eval(%sysfunc(today())-2),date9.))&lt;/P&gt;
&lt;P&gt;etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 22:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729252#M226916</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-25T22:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729261#M226924</link>
      <description>Thanks for your help.&lt;BR /&gt;Where I Have to Put this code? In the list table advanced filter?</description>
      <pubDate>Thu, 25 Mar 2021 23:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729261#M226924</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-25T23:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729270#M226928</link>
      <description>&lt;P&gt;Why do you want to rename a large number of variables in SAS VA? If you do that you will break any VA reports that use the old variable names. Perhaps if you explain what you are trying to do there might be a better way, possibly by creating calculated items.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 01:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729270#M226928</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-03-26T01:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729313#M226936</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I have to realize a report like the one attached.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EXAMPLE.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56541iA1FEDD7425005AB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EXAMPLE.PNG" alt="EXAMPLE.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have two bu&lt;SPAN style="font-family: inherit;"&gt;ttons that filter yellow columns by 2 variables for the r&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;ight character variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can't use a cross table because my measures are not numerical.&lt;/P&gt;&lt;P&gt;So I've decided to create a list table with 30 categorical variables (DATE1-DATE30, number of day that I need) that have value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATE1:&lt;/P&gt;&lt;P&gt;IF ( 'BUTTON 'p = 'VAR 1' )&lt;BR /&gt;RETURN 'VAR1_DATE1'n&lt;BR /&gt;ELSE 'VAR2_DATE1'n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATE2:&lt;/P&gt;&lt;P&gt;IF ( 'BUTTON 'p = 'VAR 2' )&lt;BR /&gt;RETURN 'VAR1_DATE2'n&lt;BR /&gt;ELSE 'VAR2_DATE2'n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I want to show in the table the current date as label in the list table, and rename date1=now(), date2=now()-1 etc, but I don't know what code use and where use it.&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 08:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729313#M226936</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-26T08:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729506#M227018</link>
      <description>Why not use the labels I provided?&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 22:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729506#M227018</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-26T22:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729511#M227020</link>
      <description>&lt;P&gt;Where canI insert that code in VA?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 23:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729511#M227020</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-26T23:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729518#M227025</link>
      <description>In the label field &lt;BR /&gt;</description>
      <pubDate>Sat, 27 Mar 2021 00:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729518#M227025</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-27T00:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729520#M227026</link>
      <description />
      <pubDate>Sat, 27 Mar 2021 01:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729520#M227026</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-27T01:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729521#M227027</link>
      <description>If I insert the %sysfunc in the label filelds of a category it dosen't solve it. It writes the %sysfunce litteraly As label</description>
      <pubDate>Sat, 27 Mar 2021 01:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729521#M227027</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-27T01:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729522#M227028</link>
      <description>&lt;P&gt;Oh this is not good. I swear there was a way to do this. It's been years since I last used VA. What if you create a computed value? Does the macro language get solved?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 07:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729522#M227028</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-31T07:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729718#M227153</link>
      <description>&lt;P&gt;No, the macro language dosen't get solved in a computed value.&lt;/P&gt;&lt;P&gt;I don't know how to do that!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729718#M227153</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-29T08:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729912#M227220</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/336630"&gt;@Davidsas111&lt;/a&gt;&amp;nbsp; - It would help if you provided a few example rows of your source data. There are probably better ways of transforming your data but since we don't know what it looks like to start with we can't provide any guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also how often do you refresh the data?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 00:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729912#M227220</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-03-30T00:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rename Variable with functions SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729990#M227254</link>
      <description>&lt;P&gt;I have to refresh datas every day.&lt;/P&gt;&lt;P&gt;I have to transpose a table with "var" char variables, so I can't do it on VA because cross tables can be applied fornumeric variables.&lt;/P&gt;&lt;P&gt;I transpose it on DI but on VA two bottons have to filters data.&lt;/P&gt;&lt;P&gt;Now I have to Rename the category (calculated as I wrote up) with dates.&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P&gt;Or how can I transpose in VA character variables in a cross table?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 07:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Rename-Variable-with-functions-SAS-Visual-Analytics/m-p/729990#M227254</guid>
      <dc:creator>Davidsas111</dc:creator>
      <dc:date>2021-03-30T07:28:05Z</dc:date>
    </item>
  </channel>
</rss>

