<?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: Converting PROC SQL to DATA step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-PROC-SQL-to-DATA-step/m-p/746804#M234313</link>
    <description>I would suggest the usage of a format since this looks like a lookup. You can create the format and then apply it via PROC DATASETS, which is likely the fastest solution as well. &lt;BR /&gt;&lt;BR /&gt;If you want to share what your lkup_cpt_group table looks like we can show you how to create a format from the data. &lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm&lt;/A&gt;</description>
    <pubDate>Wed, 09 Jun 2021 16:10:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-06-09T16:10:04Z</dc:date>
    <item>
      <title>Converting PROC SQL to DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-PROC-SQL-to-DATA-step/m-p/746799#M234310</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a virtual desktop and need help converting the following code from PROC SQL to a DATA step.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;
update &amp;amp;libg.prof_lines_ltd a
set grouper_1=(select b.grouper_1 from &amp;amp;libg.lkup_cpt_group b where b.CPT_CD=a.CPT_CD),
set grouper_2=(select b.grouper_2 from &amp;amp;libg.lkup_cpt_group b where b.CPT_CD=a.CPT_CD),
set grouper_3=(select b.grouper_3 from &amp;amp;libg.lkup_cpt_group b where b.CPT_CD=a.CPT_CD);
quit;&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-PROC-SQL-to-DATA-step/m-p/746799#M234310</guid>
      <dc:creator>danalukowski228</dc:creator>
      <dc:date>2021-06-09T15:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Converting PROC SQL to DATA step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-PROC-SQL-to-DATA-step/m-p/746804#M234313</link>
      <description>I would suggest the usage of a format since this looks like a lookup. You can create the format and then apply it via PROC DATASETS, which is likely the fastest solution as well. &lt;BR /&gt;&lt;BR /&gt;If you want to share what your lkup_cpt_group table looks like we can show you how to create a format from the data. &lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm&lt;/A&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-PROC-SQL-to-DATA-step/m-p/746804#M234313</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-09T16:10:04Z</dc:date>
    </item>
  </channel>
</rss>

