<?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: 'No print' for proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423225#M104049</link>
    <description>&lt;P&gt;The NOPRINT option in proc SQL is mostly used when doing a SELECT INTO, that is you use a query to create macro variables, e.g.&lt;/P&gt;&lt;PRE&gt;proc sql noprint;
  select distinct age into :ages separated by ',' 
  from sashelp.class;
quit;&lt;/PRE&gt;&lt;P&gt;In this case, you are doing a SELECT statement that does not create a table; that would normally produce a print. But you just want the ages listed in the macro variable AGES, so you use NOPRINT to bypass the print.&lt;/P&gt;&lt;P&gt;If no print would be generated anyway, then the NOPRINT option has no effect.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2017 21:52:23 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2017-12-21T21:52:23Z</dc:date>
    <item>
      <title>'No print' for proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423187#M104035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One quick question. If I write 'no print' after 'proc sql', will run time be reduced?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: table1 is an intermediate table that I am not going to save in any folder, but will be used for later data procedures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Create table table1 as select * from work.table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Where ...;&lt;/P&gt;&lt;P&gt;Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;Proc Sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Create table table1&amp;nbsp;as select * from work.table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Where ...;&lt;/P&gt;&lt;P&gt;Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 19:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423187#M104035</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-12-21T19:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'No print' for proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423189#M104036</link>
      <description>&lt;P&gt;No, I don't think so.&amp;nbsp; NOPRINT affects SQL operations that&amp;nbsp;&lt;STRONG&gt;don't&lt;/STRONG&gt; create/update a data set.&amp;nbsp; In those cases, the result is sent to ODS output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use CREATE TABLE, then NOPRINT is a "no op".&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 19:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423189#M104036</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-12-21T19:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: 'No print' for proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423225#M104049</link>
      <description>&lt;P&gt;The NOPRINT option in proc SQL is mostly used when doing a SELECT INTO, that is you use a query to create macro variables, e.g.&lt;/P&gt;&lt;PRE&gt;proc sql noprint;
  select distinct age into :ages separated by ',' 
  from sashelp.class;
quit;&lt;/PRE&gt;&lt;P&gt;In this case, you are doing a SELECT statement that does not create a table; that would normally produce a print. But you just want the ages listed in the macro variable AGES, so you use NOPRINT to bypass the print.&lt;/P&gt;&lt;P&gt;If no print would be generated anyway, then the NOPRINT option has no effect.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 21:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423225#M104049</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2017-12-21T21:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: 'No print' for proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423272#M104065</link>
      <description>&lt;P&gt;Aside from the good answers you already got, what keeps you from using &lt;FONT face="courier new,courier"&gt;options fullstimer;&lt;/FONT&gt; and run a series of tests on your own?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See Maxim 4.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 07:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-print-for-proc-sql/m-p/423272#M104065</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-22T07:51:53Z</dc:date>
    </item>
  </channel>
</rss>

