<?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 PROC SQL NOPRINT default value in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347082#M63610</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to have a default value for a PROC SQL NOPRINT if no matching row is found?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2017 15:32:53 GMT</pubDate>
    <dc:creator>fabdu92</dc:creator>
    <dc:date>2017-04-04T15:32:53Z</dc:date>
    <item>
      <title>PROC SQL NOPRINT default value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347082#M63610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to have a default value for a PROC SQL NOPRINT if no matching row is found?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 15:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347082#M63610</guid>
      <dc:creator>fabdu92</dc:creator>
      <dc:date>2017-04-04T15:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL NOPRINT default value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347085#M63611</link>
      <description>&lt;P&gt;Erm, the NOPRINT option stops SQL printing things to the log when there is just a select clause. &amp;nbsp;What exactly are you after, do you mean stop the procedure results, that is pretty default for all procedures? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 15:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347085#M63611</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-04T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL NOPRINT default value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347092#M63614</link>
      <description>&lt;P&gt;Thanks for the answer RW9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC SQL NOPRINT;
SELECT arn INTO: p_rate FROM rates WHERE MONTH(date) = MONTH("&amp;amp;chosendate."d);
QUIT;
RUN;&lt;/PRE&gt;&lt;P&gt;I am doing something like this. I use p_rate in the following like a calculation parameter.&lt;/P&gt;&lt;P&gt;If there is no matching rows, I would like p_rate to be equals to 1 by default...like this the rate won't have impact on the calculation.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 15:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347092#M63614</guid>
      <dc:creator>fabdu92</dc:creator>
      <dc:date>2017-04-04T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL NOPRINT default value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347100#M63615</link>
      <description>&lt;P&gt;I would say the easiest is to add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let p_rate=1;&lt;/P&gt;
&lt;P&gt;just before the proc sql. If a value is selected in the SQL then it wll overwrite the value assigned with the %let.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 16:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347100#M63615</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-04T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL NOPRINT default value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347101#M63616</link>
      <description>&lt;P&gt;This is so easy that I even didn't think to this! ^^ Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 16:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-NOPRINT-default-value/m-p/347101#M63616</guid>
      <dc:creator>fabdu92</dc:creator>
      <dc:date>2017-04-04T16:12:39Z</dc:date>
    </item>
  </channel>
</rss>

