<?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: Programming Help in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Programming-Help/m-p/594912#M15706</link>
    <description>&lt;P&gt;You see to have an extra IF or a missing THEN.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if (leave_code = '32')
 and (verified_transfer = 'YES' or verified_transfer ='UNKNOWN' or leave_date gt '01feb2016'd)
 and (enrolled = 0) then denom = 0;
else denom = 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 22:15:10 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-10-08T22:15:10Z</dc:date>
    <item>
      <title>Programming Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Programming-Help/m-p/594898#M15703</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been an SPSS user for a long time now and I am just now learning howto use SAS due to a job prospect. I have been asked to complete the following task, but am having a hard time writing the code to flag each student as a numerator and denominator in the attached data set:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to complete the two tasks and all the others seem pretty straight forward, but I just can't get my code to work for 'Leave Code: 32'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I wrote based on what instructions say:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cps.hs_students_enrolled;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cps.hs_students_enrolled;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (leave_code = '32') and (verified_transfer = 'YES' or verified_transfer ='UNKNOWN' or leave_date gt '01feb2016'd) and (enrolled = 0) then denom = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if denom = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if leave_code = '32' and denom = 1 then num = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I go through and check some of my observations with that code, they don't seem to be flagging correctly. I would appreciate any help on this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached my SAS file and a screen shot of the instructions.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 21:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Programming-Help/m-p/594898#M15703</guid>
      <dc:creator>JoserT</dc:creator>
      <dc:date>2019-10-08T21:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Programming Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Programming-Help/m-p/594912#M15706</link>
      <description>&lt;P&gt;You see to have an extra IF or a missing THEN.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if (leave_code = '32')
 and (verified_transfer = 'YES' or verified_transfer ='UNKNOWN' or leave_date gt '01feb2016'd)
 and (enrolled = 0) then denom = 0;
else denom = 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 22:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Programming-Help/m-p/594912#M15706</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-08T22:15:10Z</dc:date>
    </item>
  </channel>
</rss>

