<?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 two sas macro variables using proc sql with Into statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-two-sas-macro-variables-using-proc-sql-with-Into/m-p/490771#M128506</link>
    <description>&lt;PRE&gt;proc sql;
  select count(*),sum(case when sex="M" then 1 else 0 end)
  into :v1, :v2
  from sashelp.class;
quit;

%put &amp;amp;v1.;
%put &amp;amp;v2.;&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 Aug 2018 10:44:56 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-08-29T10:44:56Z</dc:date>
    <item>
      <title>create two sas macro variables using proc sql with Into statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-two-sas-macro-variables-using-proc-sql-with-Into/m-p/490768#M128504</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I want to create two sas macro variables using proc sql with Into statement&lt;/P&gt;&lt;P&gt;What is wrong with following code syntax?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL  noprint;
	select 	sum( SUM_Sales_Region) into:  PGrand_Total_Sales,
	                sum(Customers_Region) into :  PCustomers_Region
	from outcome1
;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 10:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-two-sas-macro-variables-using-proc-sql-with-Into/m-p/490768#M128504</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-08-29T10:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: create two sas macro variables using proc sql with Into statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-two-sas-macro-variables-using-proc-sql-with-Into/m-p/490770#M128505</link>
      <description>&lt;P&gt;First select variables then macro variables &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Easier to read if you move the : to the macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL  noprint;
	select 	sum( SUM_Sales_Region), sum(Customers_Region)  into :PGrand_Total_Sales, :PCustomers_Region
	from outcome1
;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 10:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-two-sas-macro-variables-using-proc-sql-with-Into/m-p/490770#M128505</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-08-29T10:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: create two sas macro variables using proc sql with Into statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-two-sas-macro-variables-using-proc-sql-with-Into/m-p/490771#M128506</link>
      <description>&lt;PRE&gt;proc sql;
  select count(*),sum(case when sex="M" then 1 else 0 end)
  into :v1, :v2
  from sashelp.class;
quit;

%put &amp;amp;v1.;
%put &amp;amp;v2.;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 10:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-two-sas-macro-variables-using-proc-sql-with-Into/m-p/490771#M128506</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-29T10:44:56Z</dc:date>
    </item>
  </channel>
</rss>

