<?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: Syntax Error, why wont this run? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Syntax-Error-why-wont-this-run/m-p/596001#M171549</link>
    <description>&lt;P&gt;You are missing "data = " on your PROC PRINT statement;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data = Math338.SE;
title 'Southeast';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 12 Oct 2019 23:01:35 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-10-12T23:01:35Z</dc:date>
    <item>
      <title>Syntax Error, why wont this run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-Error-why-wont-this-run/m-p/595999#M171548</link>
      <description>&lt;P&gt;Hello, I have the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;2191 proc print Math338.SE;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;----------&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;22&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;201&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, BLANKLINE, CONTENTS, DATA,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;DOUBLE, GRANDTOTAL_LABEL, GRANDTOT_LABEL, GRAND_LABEL, GTOTAL_LABEL, GTOT_LABEL,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;HEADING, LABEL, N, NOOBS, NOSUMLABEL, OBS, ROUND, ROWS, SPLIT, STYLE, SUMLABEL,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;UNIFORM, WIDTH.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Math338.SE;
set Math338.HW1 (drop = sale expense salesman);
if (region = 'Northeast') then delete;
if (region = 'Northwest') then delete;
if (region = 'Southwest') then delete;
else output Math338.SE;
run;
proc print Math338.SE;
title 'Southeast';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But when I run this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Math338.NE;
set Math338.HW1;
if region = 'Southeast' then delete;
if region = 'Northwest' then delete;
if region = 'Southwest' then delete;
else output Math338.NE;
run;
proc print data=Math338.NE;
title 'Northeast';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Everything runs fine. The codes are very similar and I cant find anything wrong with the first one. Please help! I have attached the full file if it helps.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 22:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-Error-why-wont-this-run/m-p/595999#M171548</guid>
      <dc:creator>valarievil</dc:creator>
      <dc:date>2019-10-12T22:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error, why wont this run?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-Error-why-wont-this-run/m-p/596001#M171549</link>
      <description>&lt;P&gt;You are missing "data = " on your PROC PRINT statement;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data = Math338.SE;
title 'Southeast';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Oct 2019 23:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-Error-why-wont-this-run/m-p/596001#M171549</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-12T23:01:35Z</dc:date>
    </item>
  </channel>
</rss>

