<?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 Proc SQL Where statement multiple values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591692#M169550</link>
    <description>&lt;P&gt;Hi - I am looking to list multiple values in one variable I want to include in a proc SQL table under a where statement. The code listed below did not work. What am I missing/doing wrong? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table largesmall_&amp;amp;date_input. as select	
		&amp;amp;date_input. as asofdate,
		mainbank,
		mainbankid,
		loansize,
		sum(lst12mn_count) as lst12mn_count,
		sum(lst12mn_grsapproval) as lst12mn_grsapproval
	from lenders_&amp;amp;date_input.
	where mainbankid='A363289' or 'A108430' or '6606272' or '5521965' or '7022337' or '5521965'
				or 'A491999' or 'A200760' or '7062401' or 'A331210' or 'A055698' or '7021510'
				or 'A070130' or 'A058410' or '7021510'
	group by 1,2,3,4
	;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Sep 2019 20:09:37 GMT</pubDate>
    <dc:creator>claforest1</dc:creator>
    <dc:date>2019-09-25T20:09:37Z</dc:date>
    <item>
      <title>Proc SQL Where statement multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591692#M169550</link>
      <description>&lt;P&gt;Hi - I am looking to list multiple values in one variable I want to include in a proc SQL table under a where statement. The code listed below did not work. What am I missing/doing wrong? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	create table largesmall_&amp;amp;date_input. as select	
		&amp;amp;date_input. as asofdate,
		mainbank,
		mainbankid,
		loansize,
		sum(lst12mn_count) as lst12mn_count,
		sum(lst12mn_grsapproval) as lst12mn_grsapproval
	from lenders_&amp;amp;date_input.
	where mainbankid='A363289' or 'A108430' or '6606272' or '5521965' or '7022337' or '5521965'
				or 'A491999' or 'A200760' or '7062401' or 'A331210' or 'A055698' or '7021510'
				or 'A070130' or 'A058410' or '7021510'
	group by 1,2,3,4
	;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 20:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591692#M169550</guid>
      <dc:creator>claforest1</dc:creator>
      <dc:date>2019-09-25T20:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Where statement multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591693#M169551</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	where mainbankid in ('A363289', 'A108430', '6606272', '5521965'  '7022337', '5521965'  'A491999', 'A200760', '7062401', 'A331210', 'A055698',  '7021510', 'A070130', 'A058410', '7021510')&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 20:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591693#M169551</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-25T20:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Where statement multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591694#M169552</link>
      <description>&lt;P&gt;I knew it was going to be something simple... Thank you! I am just beginning to learn SAS. I appreciate the help&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 20:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591694#M169552</guid>
      <dc:creator>claforest1</dc:creator>
      <dc:date>2019-09-25T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Where statement multiple values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591700#M169556</link>
      <description>&lt;P&gt;No problem! Don't forget to start exploring the SAS documentation at documentation.sas.com. Many answers can be found there too and quicker.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 20:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Where-statement-multiple-values/m-p/591700#M169556</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-25T20:55:25Z</dc:date>
    </item>
  </channel>
</rss>

