<?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 Simply the PROC SQL codes? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Simply-the-PROC-SQL-codes/m-p/812248#M320458</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm curious if I could use one PROC SQL step to achieve the two steps result below.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data underly1617;
 set underly1621_nodup; 
if year=1617; run;
proc sql noprint; select quote(trim(caseid)) into : UC_1617_list separated by ','  from underly1617; quit;
%put &amp;amp;UC_1617_list;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 May 2022 19:05:21 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2022-05-09T19:05:21Z</dc:date>
    <item>
      <title>Simply the PROC SQL codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simply-the-PROC-SQL-codes/m-p/812248#M320458</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm curious if I could use one PROC SQL step to achieve the two steps result below.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data underly1617;
 set underly1621_nodup; 
if year=1617; run;
proc sql noprint; select quote(trim(caseid)) into : UC_1617_list separated by ','  from underly1617; quit;
%put &amp;amp;UC_1617_list;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2022 19:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simply-the-PROC-SQL-codes/m-p/812248#M320458</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-05-09T19:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Simply the PROC SQL codes?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simply-the-PROC-SQL-codes/m-p/812251#M320461</link>
      <description>&lt;P&gt;You sure can. You would also need to add a WHERE clause after your FROM clause to subset only 1617 records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what your data look like though and the number of records. Usually helps to post sample code.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 19:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simply-the-PROC-SQL-codes/m-p/812251#M320461</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2022-05-09T19:19:26Z</dc:date>
    </item>
  </channel>
</rss>

