<?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: append all column names of a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/prefix-all-column-names-of-a-dataset/m-p/334780#M75624</link>
    <description>&lt;P&gt;I hope this will help u&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/48/674.html" target="_blank"&gt;http://support.sas.com/kb/48/674.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2017 21:22:01 GMT</pubDate>
    <dc:creator>gauthamk28</dc:creator>
    <dc:date>2017-02-21T21:22:01Z</dc:date>
    <item>
      <title>prefix all column names of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-all-column-names-of-a-dataset/m-p/334777#M75622</link>
      <description>&lt;P&gt;Let us say I have a dataset with 2 columns: Col1 and Col2. Is it possibly to change all column names so that they start with X (Col1 =&amp;gt; XCol1, Col2 =&amp;gt; XCol2) without having to do this manually?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-all-column-names-of-a-dataset/m-p/334777#M75622</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-02-21T21:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: append all column names of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-all-column-names-of-a-dataset/m-p/334780#M75624</link>
      <description>&lt;P&gt;I hope this will help u&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/48/674.html" target="_blank"&gt;http://support.sas.com/kb/48/674.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-all-column-names-of-a-dataset/m-p/334780#M75624</guid>
      <dc:creator>gauthamk28</dc:creator>
      <dc:date>2017-02-21T21:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: append all column names of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-all-column-names-of-a-dataset/m-p/334781#M75625</link>
      <description>&lt;P&gt;Are your original variables sequentially named as in your example?&lt;/P&gt;
&lt;P&gt;If yes, then you can use a rename&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RENAME Col1-Col2 = Xcol1 - Xcol2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Otherwise, use the SASHELP.VCOLUMN table to generate the rename statement dynamically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example from a few days ago:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/rename-variables/m-p/333964" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/rename-variables/m-p/333964&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-all-column-names-of-a-dataset/m-p/334781#M75625</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-21T21:20:01Z</dc:date>
    </item>
  </channel>
</rss>

