<?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: renaming variables and deleting cases in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/renaming-variables-and-deleting-cases/m-p/240740#M44462</link>
    <description>SAS variables typically can't follow that format and I wouldn't recommend it. Look into using labels instead.</description>
    <pubDate>Wed, 23 Dec 2015 22:59:58 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-12-23T22:59:58Z</dc:date>
    <item>
      <title>renaming variables and deleting cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/renaming-variables-and-deleting-cases/m-p/240737#M44461</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Problem-I:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suppose I have following variables: v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24, v25,v26 and so on&lt;/P&gt;&lt;P&gt;Is it possible to rename those variables which will take following respective names:&amp;nbsp;&lt;/P&gt;&lt;P&gt;6.98,7.98,8.98,9.98,10.98,11.98,12.98,1.99,2.99,3.99,4.99,5.99,6.99,7.99,8.99,9.99,10.99,11.99,12.99,1.00,2.00,&lt;SPAN&gt;3.00,4.00,5.00,6.00,7.00,8.00,9.00,10.00,11.00,12.00......and so on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the number before the dot is month, and the number after the dot is year. I want to do this for a large number of variables, so I don't want code with fixed number of years, rather it would be with variable year. Can you write&amp;nbsp;a code for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Problem-I:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Suppose I have data, now I want to delete the cases whose ages are greater than 25 born in Australia, if the variable for age is A and Country of birth is C, can u also write a code for this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 22:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/renaming-variables-and-deleting-cases/m-p/240737#M44461</guid>
      <dc:creator>mahfuz_pops</dc:creator>
      <dc:date>2015-12-23T22:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: renaming variables and deleting cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/renaming-variables-and-deleting-cases/m-p/240740#M44462</link>
      <description>SAS variables typically can't follow that format and I wouldn't recommend it. Look into using labels instead.</description>
      <pubDate>Wed, 23 Dec 2015 22:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/renaming-variables-and-deleting-cases/m-p/240740#M44462</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-23T22:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: renaming variables and deleting cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/renaming-variables-and-deleting-cases/m-p/240741#M44463</link>
      <description>&lt;P&gt;Fist, you&amp;nbsp;cannot expect anyone else to write the code for you, especially&amp;nbsp;when you haven't even tried yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So,&amp;nbsp; you can't rename variables in that manner, they don't comply with SAS naming standards (or any other database that I know of).&lt;/P&gt;
&lt;P&gt;My&amp;nbsp;suggestion is that you transpose your data set to make the&amp;nbsp;variables classifier values instead - then you can rename them almost any way you want. Take a look at PROC TRANSPOSE, or the data step with explicit output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your second problem looks like a normal WHERE&amp;nbsp;statement with a&amp;nbsp;combination of conditions, should be no problem for your to write it.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 23:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/renaming-variables-and-deleting-cases/m-p/240741#M44463</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-12-23T23:03:12Z</dc:date>
    </item>
  </channel>
</rss>

