<?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: understanding how to interpret the statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555963#M154799</link>
    <description>&lt;P&gt;Sorry to give you an answer that you don't want to hear, but this is not a SAS problem. You ought to consult with the subject matter experts and your company or university who can explain what is needed here.&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 15:11:24 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-05-03T15:11:24Z</dc:date>
    <item>
      <title>understanding how to interpret the statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555952#M154792</link>
      <description>&lt;P&gt;My difficulty is understanding this sentence so as to write the code. Identify encounters that are missing medication data by: Setting Source Hospital Identifier To my knowledge, I interpreted it as identifying missing values by setting so I thought about using "if then/else. The variables are char variables.&amp;nbsp;I feel I did not interpret the statement correctly. Help !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data drug;&lt;/P&gt;&lt;P&gt;set Im.med;&lt;/P&gt;&lt;P&gt;if encounter_id = " " then setting = " ";&lt;/P&gt;&lt;P&gt;else if enconter_id = " " then setting = " ";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 14:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555952#M154792</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2019-05-03T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: understanding how to interpret the statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555963#M154799</link>
      <description>&lt;P&gt;Sorry to give you an answer that you don't want to hear, but this is not a SAS problem. You ought to consult with the subject matter experts and your company or university who can explain what is needed here.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 15:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555963#M154799</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-05-03T15:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: understanding how to interpret the statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555964#M154800</link>
      <description>&lt;P&gt;It would likely help to provide some examples of your data with some records&amp;nbsp;showing some missing medication data and others not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 15:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555964#M154800</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-03T15:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: understanding how to interpret the statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555970#M154802</link>
      <description>&lt;P&gt;here is a fair link to get you started.&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202239.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202239.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;basically if condition is meet the statement is set else if the condition fails then the else condition is tested. and so on and so on for each else condition until a condition is set.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;there are much better ways to handle setting variables but your basic if then else is a fair starting point.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 15:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/555970#M154802</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-05-03T15:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: understanding how to interpret the statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/556016#M154820</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Identify encounters that are missing medication data by: Setting Source Hospital Identifier&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;This seems incomplete? Missing medication is relatively easy, personally I prefer&amp;nbsp;to use the MISSING() function because it doesn't matter if the variable is character or numeric.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if missing(encounter_id) then&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;BUt why are you checking if the encounterID is missing, when it asks about medication?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We really can't answer this at all, because we don't know the data, context or question.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/253321"&gt;@CathyVI&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;My difficulty is understanding this sentence so as to write the code. Identify encounters that are missing medication data by: Setting Source Hospital Identifier To my knowledge, I interpreted it as identifying missing values by setting so I thought about using "if then/else. The variables are char variables.&amp;nbsp;I feel I did not interpret the statement correctly. Help !!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data drug;&lt;/P&gt;
&lt;P&gt;set Im.med;&lt;/P&gt;
&lt;P&gt;if encounter_id = " " then setting = " ";&lt;/P&gt;
&lt;P&gt;else if enconter_id = " " then setting = " ";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 17:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/understanding-how-to-interpret-the-statement/m-p/556016#M154820</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-03T17:20:11Z</dc:date>
    </item>
  </channel>
</rss>

