<?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: strange output command in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851353#M336486</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... cannot be difficult to translate to SQL.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But your data step cannot work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Submit it and I think you will get this ERROR:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ")" is wrong as well as the spelling of "output" , ... in this statement :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if plan)num=60000 then outuput;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So we do not know what data step should do ...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_frowning_face:"&gt;🙁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 14:56:37 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-12-28T14:56:37Z</dc:date>
    <item>
      <title>strange output command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851348#M336482</link>
      <description>&lt;PRE&gt;data live_account;
   merge live_account (in=a) purge (in=b) plan (in=c);
   if a and ~b;
   by account_no;
;
   if card_type in ("PL" "TU") then do;
         if plan)num=60000 then outuput;
   end;
   else output;
run;
&lt;/PRE&gt;
&lt;P&gt;I would like to translate this to sql but not sure how to do it, could you please help me, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 14:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851348#M336482</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-12-28T14:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: strange output command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851353#M336486</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... cannot be difficult to translate to SQL.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But your data step cannot work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Submit it and I think you will get this ERROR:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ")" is wrong as well as the spelling of "output" , ... in this statement :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if plan)num=60000 then outuput;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So we do not know what data step should do ...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_frowning_face:"&gt;🙁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 14:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851353#M336486</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-12-28T14:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: strange output command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851356#M336489</link>
      <description>&lt;P&gt;Ignoring the typos in your code (which really should NOT be there, you should check your code before you post it -- please do that from now on), I believe this WHERE statement in SQL ought to work ... But since you haven't provided data, I cannot test it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where (card_type in ("PL" "TU") and plan_num=60000) or not card_type in ("PL" "TU") &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Dec 2022 15:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851356#M336489</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T15:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: strange output command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851488#M336553</link>
      <description>&lt;P&gt;You can omit the first part:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where plan_num = 60000 or not card_type in ("PL","TU")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Dec 2022 07:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851488#M336553</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-29T07:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: strange output command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851529#M336576</link>
      <description>&lt;P&gt;The NOT IN condition must be written as &lt;FONT face="courier new,courier"&gt;&lt;EM&gt;variable&lt;/EM&gt; &lt;STRONG&gt;not in&lt;/STRONG&gt; (&lt;EM&gt;list&lt;/EM&gt;)&lt;/FONT&gt; or with additional parentheses: &lt;FONT face="courier new,courier"&gt;not &lt;STRONG&gt;(&lt;/STRONG&gt;&lt;EM&gt;variable&lt;/EM&gt; in (&lt;EM&gt;list&lt;/EM&gt;)&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 14:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851529#M336576</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-12-29T14:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: strange output command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851608#M336612</link>
      <description>&lt;P&gt;Good catch, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 11:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-output-command/m-p/851608#M336612</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-30T11:31:37Z</dc:date>
    </item>
  </channel>
</rss>

