<?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 How to add a prefix to the existing labels of variables? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-prefix-to-the-existing-labels-of-variables/m-p/62521#M17776</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am merging two data sets for my project and would like to add prefixes to the labels of variables from each data set. For example, if I am merging data sets A and B, I want to add a prefix A to the labels of variables obtained from data set A and a prefix B to the labels of variables obtained from data set B. I do not want to change the variable names, but just add prefixes to their labels.&lt;BR /&gt;
&lt;BR /&gt;
Can you guys help me with this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Raj

Message was edited by: rpunekar</description>
    <pubDate>Fri, 07 Aug 2009 19:08:47 GMT</pubDate>
    <dc:creator>rpunekar</dc:creator>
    <dc:date>2009-08-07T19:08:47Z</dc:date>
    <item>
      <title>How to add a prefix to the existing labels of variables?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-prefix-to-the-existing-labels-of-variables/m-p/62521#M17776</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am merging two data sets for my project and would like to add prefixes to the labels of variables from each data set. For example, if I am merging data sets A and B, I want to add a prefix A to the labels of variables obtained from data set A and a prefix B to the labels of variables obtained from data set B. I do not want to change the variable names, but just add prefixes to their labels.&lt;BR /&gt;
&lt;BR /&gt;
Can you guys help me with this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Raj

Message was edited by: rpunekar</description>
      <pubDate>Fri, 07 Aug 2009 19:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-prefix-to-the-existing-labels-of-variables/m-p/62521#M17776</guid>
      <dc:creator>rpunekar</dc:creator>
      <dc:date>2009-08-07T19:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a prefix to the existing labels of variables?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-prefix-to-the-existing-labels-of-variables/m-p/62522#M17777</link>
      <description>Use the VLABEL function in a DATA step to retrieve the current variable label (assigning it to a temporary SAS variable), and use PUT to generate new LABEL statements with the desired new/merged variable label value out to a temp file.  Then %include that temp file to re-define the variable labels.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 08 Aug 2009 13:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-a-prefix-to-the-existing-labels-of-variables/m-p/62522#M17777</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-08T13:37:31Z</dc:date>
    </item>
  </channel>
</rss>

