<?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: Proc Print before Abort in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-before-Abort/m-p/696792#M79813</link>
    <description>&lt;P&gt;From where do the macro variables &amp;amp;dog and &amp;amp;cat originate? What does the macro connect_db contain?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 07:23:17 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-11-05T07:23:17Z</dc:date>
    <item>
      <title>Proc Print before Abort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-before-Abort/m-p/696747#M79812</link>
      <description>&lt;P&gt;I am using Eguide. Right now the following code does what it is supposed to do: it aborts the query if a condition is met. But the log appears after the Abort. Instead I want to run a Proc Print of a dataset called ANIMALS that remains on screen instead of the screen showing the log.&amp;nbsp;Is this possible? Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;%MACRO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; MYMACRO();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;CONNECT_DB&lt;/I&gt;&lt;/STRONG&gt;(MYSERVER, LIBNAME=YES);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%IF&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;CAT."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; NE &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; and &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;DOG."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; NE &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;""&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%THEN&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%DO&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%PUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ERROR: CAT and DOG cannot both be empty.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%ABORT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%END&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;STRONG&gt;..r&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;est of &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;code.&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 02:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-before-Abort/m-p/696747#M79812</guid>
      <dc:creator>MartyMcFlySAS</dc:creator>
      <dc:date>2020-11-05T02:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print before Abort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-before-Abort/m-p/696792#M79813</link>
      <description>&lt;P&gt;From where do the macro variables &amp;amp;dog and &amp;amp;cat originate? What does the macro connect_db contain?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 07:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-before-Abort/m-p/696792#M79813</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-05T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print before Abort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-before-Abort/m-p/696826#M79814</link>
      <description>&lt;P&gt;Disregard, I figured it out. I will not use the Abort function, instead I will wrap the entire code in an %IF statement.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 10:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Print-before-Abort/m-p/696826#M79814</guid>
      <dc:creator>MartyMcFlySAS</dc:creator>
      <dc:date>2020-11-05T10:40:40Z</dc:date>
    </item>
  </channel>
</rss>

