<?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: I'm getting a 79-322 Error idk where it's coming from in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804927#M317018</link>
    <description>are spaces characters</description>
    <pubDate>Wed, 30 Mar 2022 01:12:19 GMT</pubDate>
    <dc:creator>aasdfafafsdfsaf</dc:creator>
    <dc:date>2022-03-30T01:12:19Z</dc:date>
    <item>
      <title>I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804922#M317015</link>
      <description>&lt;P&gt;I'm working with two large datasets.&lt;/P&gt;&lt;P&gt;ive read somewhere online that select into can work to reduce load on servers and improve runtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sql noprint;
select quote(put(col1,4.)) 
into 
:my_list separated by ","
from my_data
;quit;

%put &amp;amp;my_list;

proc sql;
create table want 
as select col1,col2 
from very_big_table
where col3 in (&amp;amp;my_list.)
;quit;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;after running the second chunk of code i get my 79-322 error. Expecting a ). I'm really confused this looks proper to me but why is it giving this error?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 00:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804922#M317015</guid>
      <dc:creator>aasdfafafsdfsaf</dc:creator>
      <dc:date>2022-03-30T00:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804926#M317017</link>
      <description>&lt;P&gt;There's no evidence in your posted code that matches your error message. You need to post your actual SAS log so we can see what is really going on. One thing to check is the length of the my_list macro variable - it can be no more than 32K characters long.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 01:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804926#M317017</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-30T01:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804927#M317018</link>
      <description>are spaces characters</description>
      <pubDate>Wed, 30 Mar 2022 01:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804927#M317018</guid>
      <dc:creator>aasdfafafsdfsaf</dc:creator>
      <dc:date>2022-03-30T01:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804929#M317020</link>
      <description>&lt;P&gt;Yes, if they are within the long string. Add the STRIP function to remove unnecessary spaces.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 01:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804929#M317020</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-30T01:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804937#M317025</link>
      <description>&lt;P&gt;So COL1 is numeric with values between -999 and 9999?&lt;/P&gt;
&lt;P&gt;And COL3 is character with a length of $4?&amp;nbsp; And the values of COL3 that use less than 4 characters are right aligned?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How many observations are in MY_DATA?&amp;nbsp; Since you are writing 7 characters per value you can only fit 64K/7 -&amp;gt; 9,362 observations worth of values into the macro variable before the value will be truncated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do any of the values of COL1 in MY_DATA repeat?&amp;nbsp; You should add the DISTINCT keyword to your SQL SELECT statement as you only need one copy of each value in the macro variable.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804937#M317025</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-30T03:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804945#M317032</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help. It ended up being too long and exceeded the character limit.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 04:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804945#M317032</guid>
      <dc:creator>aasdfafafsdfsaf</dc:creator>
      <dc:date>2022-03-30T04:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804952#M317039</link>
      <description>&lt;P&gt;Your best option is to load the SAS table into a DBMS temporary table and then join to the DBMS table from there to subset your data.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 05:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804952#M317039</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-30T05:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: I'm getting a 79-322 Error idk where it's coming from</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804995#M317067</link>
      <description>&lt;P&gt;I am very sure that the data from your first query exceeds the maximum length of a macro variable (64K).&lt;/P&gt;
&lt;P&gt;Run this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select t2.col1, t2.col2
  from my_data t1 left join very_big_table t2
  on t1.col1 = t2.col3
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or (probably fastest)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set very_big_table (keep=col3 col1 col2);
if _n_ =1
then do;
  declare hash my (dataset:"mydata (keep=col1 rename=(col1=col3))");
  my.definekey("col3");
  my.definedata("col3");
  my.definedone();
end;
if my.check() = 0;
drop col3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2022 09:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-m-getting-a-79-322-Error-idk-where-it-s-coming-from/m-p/804995#M317067</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-30T09:44:44Z</dc:date>
    </item>
  </channel>
</rss>

