<?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: Reg:Variable names in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45066#M11871</link>
    <description>I haven't used merge because in the example given, I couldn't find any common key. And the output which is required is 3 rows instead of 1 row.</description>
    <pubDate>Wed, 17 Jun 2009 03:46:05 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-17T03:46:05Z</dc:date>
    <item>
      <title>Reg:Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45062#M11867</link>
      <description>Hi i have 3 datasets a,b,c and the names for dataset A=cus_name and in dataset B the name is F_name and in datset C the name is l_name now i want to create a dataset D and set all the three  datasets .But i wnat to keep a condition like if cus_name,F_name and l_name then the name of the variable should be made to final_name in the final dataset D.and all the three variable obs should come in to the variable as final_name .The observations are different in all three datasets.(without using rename or label)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
input cus_name$;&lt;BR /&gt;
cards;&lt;BR /&gt;
nani&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data b;&lt;BR /&gt;
input f_name$;&lt;BR /&gt;
cards;&lt;BR /&gt;
rani&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data c;&lt;BR /&gt;
input l_name$;&lt;BR /&gt;
cards;&lt;BR /&gt;
raju&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
output&lt;BR /&gt;
&lt;BR /&gt;
final_name&lt;BR /&gt;
&lt;BR /&gt;
nani&lt;BR /&gt;
rani&lt;BR /&gt;
raju</description>
      <pubDate>Tue, 16 Jun 2009 07:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45062#M11867</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-16T07:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45063#M11868</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Please try this..&lt;BR /&gt;
I didn't get your requirement.&lt;BR /&gt;
I tried with what i have understood&lt;BR /&gt;
&lt;BR /&gt;
data d(drop=cus_name f_name l_name);&lt;BR /&gt;
set a b c;&lt;BR /&gt;
final=COALESCEC(cus_name,f_name,l_name);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Regrds,&lt;BR /&gt;
skm</description>
      <pubDate>Tue, 16 Jun 2009 08:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45063#M11868</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-16T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45064#M11869</link>
      <description>Hi,&lt;BR /&gt;
You can try the following:&lt;BR /&gt;
&lt;BR /&gt;
data D;&lt;BR /&gt;
 set a(rename = (cus_name = Final_Name)&lt;BR /&gt;
 b(rename = (f_name = Final_Name)&lt;BR /&gt;
 c(rename = (l_name = Final_Name)&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 16 Jun 2009 19:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45064#M11869</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-16T19:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45065#M11870</link>
      <description>The post describes a "data interleave" technique, not a "data merge" requirement?  I  really don't understand why you would want to create an output file having observations where any one contributing variable name will be blank -- that will be the behavior result when using SET instead of considering somehow doing a MERGE (however you would need to have some BY variable list to use with a merge process.&lt;BR /&gt;
&lt;BR /&gt;
Honestly, the purpose of this example, as described in your post, appears somewhat curious, given that you have mentioned "set", even though you really mean to do some type of merge, right?&lt;BR /&gt;
&lt;BR /&gt;
I'm a bit baffled how this point wasn't raised previously with the post/thread, frankly.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 16 Jun 2009 19:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45065#M11870</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-16T19:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Variable names</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45066#M11871</link>
      <description>I haven't used merge because in the example given, I couldn't find any common key. And the output which is required is 3 rows instead of 1 row.</description>
      <pubDate>Wed, 17 Jun 2009 03:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Variable-names/m-p/45066#M11871</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-17T03:46:05Z</dc:date>
    </item>
  </channel>
</rss>

