<?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 WHERE CALUSE WITH MANY VALUES IN PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/800939#M315164</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to run a query from the database where I am specifying some accounts, However the accounts I want to specify in the where clause are more than 30,000 so I get the error message&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Submitted code lines&amp;nbsp; longer than 6,000 characters,SAS is unable to process lines longer than 6,000 characters&lt;/STRONG&gt;" Is there any way around this?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 21:10:36 GMT</pubDate>
    <dc:creator>moxsh</dc:creator>
    <dc:date>2022-03-08T21:10:36Z</dc:date>
    <item>
      <title>WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/800939#M315164</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to run a query from the database where I am specifying some accounts, However the accounts I want to specify in the where clause are more than 30,000 so I get the error message&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Submitted code lines&amp;nbsp; longer than 6,000 characters,SAS is unable to process lines longer than 6,000 characters&lt;/STRONG&gt;" Is there any way around this?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 21:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/800939#M315164</guid>
      <dc:creator>moxsh</dc:creator>
      <dc:date>2022-03-08T21:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/800945#M315166</link>
      <description>&lt;P&gt;Are the account names really over 6000 characters long?&lt;/P&gt;
&lt;P&gt;If not try inserted some line breaks into your program file so that the lines are not so long.&lt;/P&gt;
&lt;P&gt;If you expect an actual human to be able to read and understand the file limit the length of the lines to 80 characters or less.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 21:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/800945#M315166</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-08T21:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/800954#M315171</link>
      <description>&lt;P&gt;Are you going to admit that perhaps you created a macro variable to do this?&lt;/P&gt;
&lt;P&gt;I may be easier, and certainly won't have that character limit by using a JOIN on a data set that contains the account numbers.&lt;/P&gt;
&lt;P&gt;Generic example:&lt;/P&gt;
&lt;PRE&gt;Proc sql;
   create table want as 
   select b.* 
   from accountstokeep as a
           left join
           otherdataset as b
          on a.accountnumber=b.accountnumber
  ;
quit;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Mar 2022 22:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/800954#M315171</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-08T22:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801002#M315204</link>
      <description>I tried this but it still writes accounts that dont have anything to return on the "want" dataset which sorts of takes some time to execute</description>
      <pubDate>Wed, 09 Mar 2022 05:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801002#M315204</guid>
      <dc:creator>moxsh</dc:creator>
      <dc:date>2022-03-09T05:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801003#M315205</link>
      <description>Its a list of many accounts,so on the SAS Editor they exceed 6,000 characters by far</description>
      <pubDate>Wed, 09 Mar 2022 05:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801003#M315205</guid>
      <dc:creator>moxsh</dc:creator>
      <dc:date>2022-03-09T05:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801015#M315213</link>
      <description>&lt;P&gt;Then change to inner join instead.&lt;/P&gt;
&lt;P&gt;Will probably perform better as well.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 07:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801015#M315213</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-03-09T07:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801052#M315225</link>
      <description>&lt;P&gt;As Tom said :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not try&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt; inserted some line breaks into your program&lt;/STRONG&gt;&lt;/FONT&gt; file so that the lines are not so long.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 12:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801052#M315225</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-09T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE CALUSE WITH MANY VALUES IN PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801054#M315227</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/101005"&gt;@moxsh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am trying to run a query from the database where I am specifying some accounts, However the accounts I want to specify in the where clause are more than 30,000 so I get the error message&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;Submitted code lines&amp;nbsp; longer than 6,000 characters,SAS is unable to process lines longer than 6,000 characters&lt;/STRONG&gt;" Is there any way around this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Looks like something went wrong in the design-phase. Those accounts should be in a dataset, so that you could use a join to get the required output. See first answer by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 12:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-CALUSE-WITH-MANY-VALUES-IN-PROC-SQL/m-p/801054#M315227</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-03-09T12:38:36Z</dc:date>
    </item>
  </channel>
</rss>

