<?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: proc sql select in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49711#M13495</link>
    <description>At times, I also find this condition to work best with macro variables, mostly where a SAS variable label (or a TITLEn maybe) requires the contents of an incoming SAS variable to be revealed in a report, instead of occupying a column.  One example would be event response metrics data where a variable declares some distribution limit value, like "all responses less than &amp;amp;respval1" when used as an associated metric variable label.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sun, 31 Jan 2010 17:07:50 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-01-31T17:07:50Z</dc:date>
    <item>
      <title>proc sql select</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49709#M13493</link>
      <description>data test;&lt;BR /&gt;
 input grp1 grp2 count cntvarname;&lt;BR /&gt;
cards&lt;BR /&gt;
1 1 8 g1_g1&lt;BR /&gt;
1 2 9 g1_g2&lt;BR /&gt;
1 3 7 g1_g3&lt;BR /&gt;
2 1 5 g2_g1&lt;BR /&gt;
2 2 6 g2_g2&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
How do I assign each of the count values to a macro variable whose name is defined in cntvarname? that is, I want a macro variable g1_g1 has value 8, g1_g2 =9, etc.&lt;BR /&gt;
&lt;BR /&gt;
proc sql select into: needs a resolved macro variable name. I can not get this work. much appreciate for help!</description>
      <pubDate>Sun, 31 Jan 2010 15:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49709#M13493</guid>
      <dc:creator>abdullala</dc:creator>
      <dc:date>2010-01-31T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql select</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49710#M13494</link>
      <description>For this a data step with CALL SYMPUTX would be easier.  &lt;BR /&gt;
&lt;BR /&gt;
However, why do it at all.  The data is much more useful in a data set than in macro variables.  Once the data are in macro variables that are mostly useless because you have to know their names, and the values are not longer numbers, etc.</description>
      <pubDate>Sun, 31 Jan 2010 15:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49710#M13494</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-01-31T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql select</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49711#M13495</link>
      <description>At times, I also find this condition to work best with macro variables, mostly where a SAS variable label (or a TITLEn maybe) requires the contents of an incoming SAS variable to be revealed in a report, instead of occupying a column.  One example would be event response metrics data where a variable declares some distribution limit value, like "all responses less than &amp;amp;respval1" when used as an associated metric variable label.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 31 Jan 2010 17:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49711#M13495</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-31T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql select</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49712#M13496</link>
      <description>thank you all, I should use call symput. yes, I need all those in macro variables to be called in some other places.</description>
      <pubDate>Mon, 01 Feb 2010 00:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-select/m-p/49712#M13496</guid>
      <dc:creator>abdullala</dc:creator>
      <dc:date>2010-02-01T00:56:57Z</dc:date>
    </item>
  </channel>
</rss>

