<?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: create varariables form  sas data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-varariables-form-sas-data/m-p/59477#M12887</link>
    <description>You could use macro variables:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
	set a;&lt;BR /&gt;
	call symput('COL1',col1);&lt;BR /&gt;
	call symput('COL2',col2);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc datasets lib=work nolist;&lt;BR /&gt;
	modify b;&lt;BR /&gt;
	rename col1=&amp;amp;COL1 col2=&amp;amp;COL2;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Wed, 05 Nov 2008 11:33:15 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2008-11-05T11:33:15Z</dc:date>
    <item>
      <title>create varariables form  sas data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-varariables-form-sas-data/m-p/59476#M12886</link>
      <description>Hi all,&lt;BR /&gt;
I have a question&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If i have sas data that look like this:&lt;BR /&gt;
name of table: a&lt;BR /&gt;
vars:   col1    col2 &lt;BR /&gt;
&lt;BR /&gt;
obs   name   gender&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And also i have sas data like :&lt;BR /&gt;
name of table: b&lt;BR /&gt;
vars:   col1    col2&lt;BR /&gt;
    &lt;BR /&gt;
obs:   yoni    m&lt;BR /&gt;
          aaa    f&lt;BR /&gt;
          bbb   m&lt;BR /&gt;
&lt;BR /&gt;
What i want to do is to take all the the obs from table a and put then as vars on table b .&lt;BR /&gt;
&lt;BR /&gt;
Does anyone knows how to do it?&lt;BR /&gt;
&lt;BR /&gt;
thanks in advance</description>
      <pubDate>Wed, 05 Nov 2008 07:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-varariables-form-sas-data/m-p/59476#M12886</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2008-11-05T07:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: create varariables form  sas data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-varariables-form-sas-data/m-p/59477#M12887</link>
      <description>You could use macro variables:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
	set a;&lt;BR /&gt;
	call symput('COL1',col1);&lt;BR /&gt;
	call symput('COL2',col2);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc datasets lib=work nolist;&lt;BR /&gt;
	modify b;&lt;BR /&gt;
	rename col1=&amp;amp;COL1 col2=&amp;amp;COL2;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Wed, 05 Nov 2008 11:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-varariables-form-sas-data/m-p/59477#M12887</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-11-05T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: create varariables form  sas data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-varariables-form-sas-data/m-p/59478#M12888</link>
      <description>Hi Linus ,&lt;BR /&gt;
Thanks for  help !!</description>
      <pubDate>Wed, 05 Nov 2008 20:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-varariables-form-sas-data/m-p/59478#M12888</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2008-11-05T20:05:01Z</dc:date>
    </item>
  </channel>
</rss>

