<?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: Regarding SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465651#M30149</link>
    <description>&lt;P&gt;Please read the replies already provided above.&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 11:11:24 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-05-29T11:11:24Z</dc:date>
    <item>
      <title>Setting a flag if data value present</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465472#M30122</link>
      <description>&lt;P&gt;If any Lead number is Present in the Given data it should appear as installed=1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to Solve this in Proc Sql ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lead Number&amp;nbsp; &amp;nbsp; &amp;nbsp; Installed&lt;/P&gt;
&lt;P&gt;2121221&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;2212154&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 11:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465472#M30122</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2018-05-29T11:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS [how to improve your question]</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465474#M30123</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124432"&gt;@saikiran_nemani&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &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;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 229px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
      <pubDate>Mon, 28 May 2018 13:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465474#M30123</guid>
      <dc:creator>Community_Guide</dc:creator>
      <dc:date>2018-05-28T13:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465477#M30126</link>
      <description>&lt;P&gt;Data step solution&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    if not missing(lead_number) then installed=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And yes, a more meaningful title and more information is always appreciated and helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 13:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465477#M30126</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-05-28T13:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465509#M30128</link>
      <description>&lt;P&gt;To do that in SQL, use a CASE clause within the SELECT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the syntax depends on whether LeadNumber is character or numeric, and you haven't yet told us that information.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 17:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465509#M30128</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-05-28T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465515#M30129</link>
      <description>&lt;P&gt;What value should the new INSTALLED variable have when LEADNUMBER is missing?&lt;/P&gt;
&lt;P&gt;It is probably easiest in SAS to just let SAS create the new variable as a boolean number where 1 is true and 0 is false.&lt;/P&gt;
&lt;P&gt;For example you could use the SAS function MISSING() to test if LEADNUMBER is missing.&amp;nbsp; And use the NOT operator to take the complement of the result.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select
    leadNumber
  , not missing(leadNumber) as Installed
  from have
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 May 2018 17:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465515#M30129</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-05-28T17:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465625#M30145</link>
      <description>&lt;P&gt;Suppose these are the Lead numbers and How do we Create a variable called Install with the Value 1 for each lead number&lt;/P&gt;&lt;P&gt;Data Type : NUMERIC&lt;/P&gt;&lt;P&gt;42129203&lt;/P&gt;&lt;P&gt;43899661&lt;BR /&gt;43947460&lt;BR /&gt;45396478&lt;BR /&gt;45439343&lt;BR /&gt;45566313&lt;BR /&gt;45599714&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 08:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465625#M30145</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2018-05-29T08:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465651#M30149</link>
      <description>&lt;P&gt;Please read the replies already provided above.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 11:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Setting-a-flag-if-data-value-present/m-p/465651#M30149</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-05-29T11:11:24Z</dc:date>
    </item>
  </channel>
</rss>

