<?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 macro variables in proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-two-macro-variables-in-proc-sql/m-p/216831#M39958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because the code hasn't the proper syntax, which is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc sql noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select name, age into:bname, :bage&amp;nbsp; from sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put &amp;amp;bname &amp;amp;bage;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which record do you want anyway?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 17:55:24 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2015-05-18T17:55:24Z</dc:date>
    <item>
      <title>create two macro variables in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-two-macro-variables-in-proc-sql/m-p/216830#M39957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why this code is giving error? How can we create two macro variables through into option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql noprint outobs=1;&lt;/P&gt;&lt;P&gt;select name into:bname, age into:bage&amp;nbsp; from sashelp.class;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;bname &amp;amp;bage; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 17:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-two-macro-variables-in-proc-sql/m-p/216830#M39957</guid>
      <dc:creator>kumarK</dc:creator>
      <dc:date>2015-05-18T17:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: create two macro variables in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-two-macro-variables-in-proc-sql/m-p/216831#M39958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because the code hasn't the proper syntax, which is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc sql noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select name, age into:bname, :bage&amp;nbsp; from sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put &amp;amp;bname &amp;amp;bage;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which record do you want anyway?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 17:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-two-macro-variables-in-proc-sql/m-p/216831#M39958</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-05-18T17:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: create two macro variables in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-two-macro-variables-in-proc-sql/m-p/216832#M39959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply. This is the generic question i have asked. i will put conditions in where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 18:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-two-macro-variables-in-proc-sql/m-p/216832#M39959</guid>
      <dc:creator>kumarK</dc:creator>
      <dc:date>2015-05-18T18:08:10Z</dc:date>
    </item>
  </channel>
</rss>

