<?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: Insert Query and Run in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304433#M1291</link>
    <description>&lt;P&gt;It really helps to show some example data. If you have a data set then instructions here &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to create SAS datastep code that can be posted here as text so that we can recreate the intput data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then show what the desired result for that data.&lt;/P&gt;
&lt;P&gt;You are starting in the middle and the desired output is not clear.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 17:33:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-10-13T17:33:59Z</dc:date>
    <item>
      <title>Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304270#M1274</link>
      <description>&lt;P&gt;hi.. am new to SAS, I need to insert a query(eg - select count(distict inc_no) from incident_table) into the table using Dataset.&lt;BR /&gt;Second thing is i need to fetch that column and run a proc sql, i mean i need an ouput(count - 60) for the query which has been inserted in the incident_table.&lt;BR /&gt;How can i acheive this, pls anyone help me. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304270#M1274</guid>
      <dc:creator>vivekarun12</dc:creator>
      <dc:date>2016-10-13T07:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304273#M1275</link>
      <description>&lt;P&gt;Not sure about the purpose&amp;nbsp;of this, perhaps you could clarify the underlying requirement?&lt;/P&gt;
&lt;P&gt;But technically, just store the query in a char column in a table.&lt;/P&gt;
&lt;P&gt;Then you can use call execute in a data step that reads that table.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304273#M1275</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-13T07:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304274#M1276</link>
      <description>&lt;P&gt;1.&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#p014txvde9e60an1xyloas81o6by.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#p014txvde9e60an1xyloas81o6by.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#p0lsf4btafkw9mn1md4c69kkfwbl.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/sqlproc/69049/HTML/default/viewer.htm#p0lsf4btafkw9mn1md4c69kkfwbl.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 08:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304274#M1276</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-13T08:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304314#M1278</link>
      <description>&lt;P&gt;Sorry for delay in respond, I have inserted a data in the table, fyr,&amp;nbsp;&lt;/P&gt;&lt;P&gt;make&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;select count(make) from auto&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I need an output of the above query, how can i get it. thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304314#M1278</guid>
      <dc:creator>vivekarun12</dc:creator>
      <dc:date>2016-10-13T10:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304320#M1280</link>
      <description>&lt;P&gt;Look into CALL EXECUTE or DOSUBL&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304320#M1280</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-13T10:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304350#M1286</link>
      <description>&lt;P&gt;Reeza.. Call execute is not working for me. am new to SAS.. can yu pls share some example pgm..? pls check my code below..&lt;BR /&gt;proc sql;&lt;BR /&gt;select make from auto&lt;BR /&gt;where&lt;BR /&gt;make like 'selec%';&lt;BR /&gt;call execute (make);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304350#M1286</guid>
      <dc:creator>vivekarun12</dc:creator>
      <dc:date>2016-10-13T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304377#M1287</link>
      <description>&lt;P&gt;Anyone pls help on my below query...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Call execute is not working for me. am new to SAS.. can yu pls share some example pgm..? pls check my code below..&lt;BR /&gt;proc sql;&lt;BR /&gt;select make from auto&lt;BR /&gt;where&lt;BR /&gt;make like 'selec%';&lt;BR /&gt;call execute ("PROC SQL;");&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304377#M1287</guid>
      <dc:creator>vivekarun12</dc:creator>
      <dc:date>2016-10-13T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304390#M1288</link>
      <description>&lt;P&gt;You don't need anything actually. Your question was confusing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Submit the following program&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc SQL;&lt;/P&gt;
&lt;P&gt;select make&lt;/P&gt;
&lt;P&gt;from auto&lt;/P&gt;
&lt;P&gt;where make like 'selec%';&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here for basic SAS tutorials as well as links to the free ecourse.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 15:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304390#M1288</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-13T15:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304413#M1289</link>
      <description>&lt;P&gt;Thanks for your respond. for your query am getting a result like,&lt;/P&gt;&lt;P&gt;make&lt;BR /&gt;&lt;STRONG&gt;select count(make) from auto group by mpg&lt;/STRONG&gt;&lt;BR /&gt;there is a query in the &lt;SPAN&gt;variable&amp;nbsp;&lt;/SPAN&gt;as shown above, I have got an ouput from your query, what i want is,&amp;nbsp;i need an output for the above query(&lt;STRONG&gt;select count(make) from auto group by mpg&lt;/STRONG&gt;) from the variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304413#M1289</guid>
      <dc:creator>vivekarun12</dc:creator>
      <dc:date>2016-10-13T16:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304433#M1291</link>
      <description>&lt;P&gt;It really helps to show some example data. If you have a data set then instructions here &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to create SAS datastep code that can be posted here as text so that we can recreate the intput data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then show what the desired result for that data.&lt;/P&gt;
&lt;P&gt;You are starting in the middle and the desired output is not clear.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304433#M1291</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-13T17:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Query and Run</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304452#M1292</link>
      <description>&lt;P&gt;I'm sorry, but it's incredibly unclear on what you're trying to achieve. I can't tell if its a very basic question where you want to run a query and get results or if its something more complex where you're trying to store code in a data set and then execute said code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post in more details what you're trying to do, and try and include examples/samples as much as possible.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 19:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Insert-Query-and-Run/m-p/304452#M1292</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-13T19:16:05Z</dc:date>
    </item>
  </channel>
</rss>

