<?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 table.deleterows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/table-deleterows/m-p/800824#M315100</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;i am having a problem with this proc cas , the where statement is not accepted and gets me an error.&lt;/P&gt;
&lt;P&gt;do you have ideas ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc cas;&lt;BR /&gt;table.deleterows / &lt;BR /&gt;table={name="TEST" caslib="mine" &lt;FONT color="#FF0000"&gt;where='ID in (select id from triangle)'};&lt;/FONT&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 10:32:04 GMT</pubDate>
    <dc:creator>aloou</dc:creator>
    <dc:date>2022-03-08T10:32:04Z</dc:date>
    <item>
      <title>table.deleterows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/table-deleterows/m-p/800824#M315100</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;i am having a problem with this proc cas , the where statement is not accepted and gets me an error.&lt;/P&gt;
&lt;P&gt;do you have ideas ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc cas;&lt;BR /&gt;table.deleterows / &lt;BR /&gt;table={name="TEST" caslib="mine" &lt;FONT color="#FF0000"&gt;where='ID in (select id from triangle)'};&lt;/FONT&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/table-deleterows/m-p/800824#M315100</guid>
      <dc:creator>aloou</dc:creator>
      <dc:date>2022-03-08T10:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: table.deleterows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/table-deleterows/m-p/800848#M315110</link>
      <description>&lt;P&gt;"Not accepted" is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;/&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;/&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 13:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/table-deleterows/m-p/800848#M315110</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-08T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: table.deleterows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/table-deleterows/m-p/800858#M315118</link>
      <description>&lt;P&gt;I do not think you can use a SQL subselect for the IN operator there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ERROR message should look like this:&lt;/P&gt;
&lt;PRE&gt;ERROR: Syntax error detected on line 2 at column 10.  Found SELECT, expecting a quoted string, a numeric constant, a datetime 
       constant, a missing value, -.  
&lt;/PRE&gt;
&lt;P&gt;which means you must supply a list of literals.&lt;/P&gt;
&lt;P&gt;Use PROC SQL to store the results into a macro variable for use in the WHERE, like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select distinct quote(trim(id),"'") into :id_list separated by ","
from triangle;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;table.deleterows / 
table={name="TEST" caslib="mine" where="ID in (&amp;amp;id_list.)"};
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Disclaimer: I have yet to start with Viya/CAS, but from a few quick tries I arrived at this suggestion. Have no idea if it works.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 15:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/table-deleterows/m-p/800858#M315118</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-08T15:40:45Z</dc:date>
    </item>
  </channel>
</rss>

