<?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: Help me with interpretation of SAS codes in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749083#M36430</link>
    <description>&lt;P&gt;Thank you for your advice. I added those comments to my code. Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Jun 2021 10:37:49 GMT</pubDate>
    <dc:creator>upstream</dc:creator>
    <dc:date>2021-06-20T10:37:49Z</dc:date>
    <item>
      <title>Help me with interpretation of SAS codes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749074#M36424</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am revisiting the SAS codes I used in the past and have difficulty interpreting my previous codes.&lt;/P&gt;&lt;P&gt;Can anyone tell me the difference between the two codes below? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a1.prediss1;&lt;BR /&gt;set a1.prediss;&lt;BR /&gt;where Error=0 And (Phoneme_stress in (0, 2, 3, 4, 5)) And phase_info1 in (1, 3);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;versus&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data a1.Prediss1;&lt;BR /&gt;set a1.Prediss;&lt;BR /&gt;where error=0 And phase_info1 in (1, 3);&lt;BR /&gt;if Phoneme_stress in (2, 3, 4, 5) then delete;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 06:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749074#M36424</guid>
      <dc:creator>upstream</dc:creator>
      <dc:date>2021-06-20T06:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with interpretation of SAS codes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749076#M36426</link>
      <description>&lt;P&gt;The difference in the logic (rows selected):&lt;/P&gt;
&lt;P&gt;In the first case rows must meet the condition:&amp;nbsp;&lt;SPAN&gt;Phoneme_stress in (0, 2, 3, 4, 5)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In the 2nd case you delete all rows that meet condition:&amp;nbsp;&lt;SPAN&gt;Phoneme_stress in&amp;nbsp; (2, 3, 4, 5)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you would use the syntax of case1 for the logic in case two it would need to look like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where Error=0 And Phoneme_stress NOT in (2, 3, 4, 5) And phase_info1 in (1, 3);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 06:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749076#M36426</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-06-20T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with interpretation of SAS codes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749077#M36427</link>
      <description>&lt;P&gt;Here's a learning tip: comment code.&lt;/P&gt;
&lt;P&gt;You can insert text in the middle of code that does not get executed if you place it between /*&amp;nbsp;&amp;nbsp; and */ (yes I know there are other comments but get one started.&lt;/P&gt;
&lt;P&gt;So when you write code you can insert what it is intended to do (up date when the code actually works)&lt;/P&gt;
&lt;P&gt;Your comment does not have to paraphrase exactly what the code does but a good idea of why usually jogs a memory enough. Following is a example:&lt;/P&gt;
&lt;PRE&gt;data a1.prediss1;
   set a1.prediss;
   /* select the records with no errors and Phoneme_stress and phase_info 
     for &amp;lt;state specific purpose&amp;gt;
  */
  where Error=0 And (Phoneme_stress in (0, 2, 3, 4, 5)) And phase_info1 in (1, 3);
run;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Jun 2021 08:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749077#M36427</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-20T08:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with interpretation of SAS codes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749082#M36429</link>
      <description>&lt;P&gt;Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 10:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749082#M36429</guid>
      <dc:creator>upstream</dc:creator>
      <dc:date>2021-06-20T10:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with interpretation of SAS codes</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749083#M36430</link>
      <description>&lt;P&gt;Thank you for your advice. I added those comments to my code. Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 10:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-me-with-interpretation-of-SAS-codes/m-p/749083#M36430</guid>
      <dc:creator>upstream</dc:creator>
      <dc:date>2021-06-20T10:37:49Z</dc:date>
    </item>
  </channel>
</rss>

