<?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: SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519579#M140746</link>
    <description>Im waiting for an actual connection to the server to get the data ..just writing the query to make sure I have it ready when I get the data so wanted to ensure its correct</description>
    <pubDate>Fri, 07 Dec 2018 22:09:42 GMT</pubDate>
    <dc:creator>Ranjeeta</dc:creator>
    <dc:date>2018-12-07T22:09:42Z</dc:date>
    <item>
      <title>SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519575#M140742</link>
      <description>&lt;P&gt;title "Ablation Procedures by Site";&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table procedures as&lt;/P&gt;&lt;P&gt;select id,days_to_removal date,acceptancesitenumber,fyear,&lt;/P&gt;&lt;P&gt;case&lt;/P&gt;&lt;P&gt;when ep_diagnosticprocedureind = 'Y' as ep_study,&lt;/P&gt;&lt;P&gt;when ep_ablationprocedureind ='Y' and (ep_dp_simpleind ='Y' or ep_dp_standard_otherind ='Y')then 'Y' else 'N' end as ablations simple&lt;/P&gt;&lt;P&gt;from ccnrecs&lt;/P&gt;&lt;P&gt;where removalreasoncd='PS';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;I would appreciate if someone can advise if the above is written technically accurately?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 21:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519575#M140742</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2018-12-07T21:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519576#M140743</link>
      <description>&lt;P&gt;Have you tried to run it? What does the log say?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 21:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519576#M140743</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-12-07T21:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519579#M140746</link>
      <description>Im waiting for an actual connection to the server to get the data ..just writing the query to make sure I have it ready when I get the data so wanted to ensure its correct</description>
      <pubDate>Fri, 07 Dec 2018 22:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519579#M140746</guid>
      <dc:creator>Ranjeeta</dc:creator>
      <dc:date>2018-12-07T22:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519585#M140750</link>
      <description>&lt;P&gt;The syntax of your CASE statement isn't right. This version is but I have no idea if it is "correct". You will have to prove that for yourself by running it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case
when ep_ablationprocedureind = 'Y' and (ep_dp_simpleind = 'Y' or ep_dp_standard_otherind = 'Y') then 'Y' 
else 'N' 
end 
as ablations_simple&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Dec 2018 22:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL/m-p/519585#M140750</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-12-07T22:28:26Z</dc:date>
    </item>
  </channel>
</rss>

