<?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: Put macro variable into table with proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Put-macro-variable-into-table-with-proc-sql/m-p/200150#M37416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just guessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select &lt;STRONG&gt; sum(total_sales)&lt;/STRONG&gt; format= 16.2 into : all_tabs&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from data_info_interview;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;create table gigantic as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select *, &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;all_tabs&lt;/STRONG&gt; as &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;all_tabs_sums&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from Hall_sum&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 12:40:28 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-08-17T12:40:28Z</dc:date>
    <item>
      <title>Put macro variable into table with proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-macro-variable-into-table-with-proc-sql/m-p/200149#M37415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am new and really out of idea about the way to put the macro variable created as one number into a column in data set. Hope you all can give me some tips on it.&lt;/P&gt;&lt;P&gt;I have created a variable with one number, 'all_tabs'=2130.&lt;/P&gt;&lt;P&gt;I have a data set name gigantic, 3 column and 23 rows. Data set is created using proc sql, how can I insert the value of macro into the gigantic dataset as new variable "all_tabs_sums"?&lt;/P&gt;&lt;P&gt;Here is the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select *, sum(total_sales) format= 16.2 into :all_tabs&lt;/P&gt;&lt;P&gt;from data_info_interview;&lt;/P&gt;&lt;P&gt;create table gigantic as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from Hall_sum&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 05:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-macro-variable-into-table-with-proc-sql/m-p/200149#M37415</guid>
      <dc:creator>MinKhee</dc:creator>
      <dc:date>2015-08-17T05:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Put macro variable into table with proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-macro-variable-into-table-with-proc-sql/m-p/200150#M37416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just guessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select &lt;STRONG&gt; sum(total_sales)&lt;/STRONG&gt; format= 16.2 into : all_tabs&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from data_info_interview;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;create table gigantic as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select *, &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;all_tabs&lt;/STRONG&gt; as &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;all_tabs_sums&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from Hall_sum&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 12:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-macro-variable-into-table-with-proc-sql/m-p/200150#M37416</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-08-17T12:40:28Z</dc:date>
    </item>
  </channel>
</rss>

