<?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: Proc SQL and OUTOBS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-and-OUTOBS/m-p/566262#M159102</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265086"&gt;@AJ_Brien&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql outobs= &lt;FONT color="#FF0000"&gt;%eval(2*&amp;amp;volume);&lt;/FONT&gt;
insert into abc
select acc, id, flag, ' ' as trial
from old_table where flag = 'n';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Jun 2019 18:57:42 GMT</pubDate>
    <dc:creator>ErikLund_Jensen</dc:creator>
    <dc:date>2019-06-14T18:57:42Z</dc:date>
    <item>
      <title>Proc SQL and OUTOBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-and-OUTOBS/m-p/566260#M159101</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling a bit with the syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a macro variable 'volume' whose value will change every day. And the outobs option needs to be equal to twice this volume. when I run without the outobs option, it runs fine. This is what I'm doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let volume = 10;



proc sql outobs= 2*&amp;amp;volume.;
insert into abc
select acc, id, flag, ' ' as trial
from old_table where flag = 'n';
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the error that I get:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, CHECK, CODEGEN, CONSTDATETIME, DOUBLE, DQUOTE, ERRORSTOP, EXEC, 
EXITCODE, FEEDBACK, FLOW, INOBS, IPASSTHRU, LOOPS, NOCHECK, NOCODEGEN, NOCONSTDATETIME, NODOUBLE, NOERRORSTOP, 
NOEXEC, NOFEEDBACK, NOFLOW, NOIPASSTHRU, NONUMBER, NOPRINT, NOPROMPT, NOREMERGE, NOSORTMSG, NOSTIMER, NOSTOPONTRUNC, 
NOTHREADS, NOWARNRECURS, NUMBER, OUTOBS, PRINT, PROMPT, REDUCEPUT, REDUCEPUTOBS, REDUCEPUTVALUES, REMERGE, SORTMSG, 
SORTSEQ, STIMER, STOPONTRUNC, THREADS, UBUFSIZE, UNDO_POLICY, WARNRECURS.

ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Appreciate the help. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-and-OUTOBS/m-p/566260#M159101</guid>
      <dc:creator>AJ_Brien</dc:creator>
      <dc:date>2019-06-14T18:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL and OUTOBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-and-OUTOBS/m-p/566262#M159102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265086"&gt;@AJ_Brien&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql outobs= &lt;FONT color="#FF0000"&gt;%eval(2*&amp;amp;volume);&lt;/FONT&gt;
insert into abc
select acc, id, flag, ' ' as trial
from old_table where flag = 'n';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-and-OUTOBS/m-p/566262#M159102</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-06-14T18:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL and OUTOBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-and-OUTOBS/m-p/566263#M159103</link>
      <description>that worked, thank you!</description>
      <pubDate>Fri, 14 Jun 2019 19:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-and-OUTOBS/m-p/566263#M159103</guid>
      <dc:creator>AJ_Brien</dc:creator>
      <dc:date>2019-06-14T19:03:03Z</dc:date>
    </item>
  </channel>
</rss>

