<?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  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600326#M173497</link>
    <description>You can mark the thread as solved by accepting one of the answers.&lt;BR /&gt;&lt;BR /&gt;Note that splitting datasets is rarely a good idea as SAS language is specifically designed to facilitate by group processing. What do you want to do that for ?</description>
    <pubDate>Wed, 30 Oct 2019 10:57:29 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2019-10-30T10:57:29Z</dc:date>
    <item>
      <title>PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600315#M173486</link>
      <description>&lt;P&gt;Goodmorning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please I remember it's possible to have a PROC SQL with a condition WHERE who put data in two different files as here below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL&lt;/P&gt;&lt;P&gt;CREATE TABLE&amp;nbsp; white black;&lt;/P&gt;&lt;P&gt;a.*&lt;/P&gt;&lt;P&gt;…..&lt;/P&gt;&lt;P&gt;where color eq "white" or "black";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm and give me the right program format?&lt;/P&gt;&lt;P&gt;Tnks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tecla&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600315#M173486</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2019-10-30T10:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600316#M173487</link>
      <description>&lt;P&gt;What is your goal here?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600316#M173487</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-30T10:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600317#M173488</link>
      <description>&lt;P&gt;I think what you want to do is this.&amp;nbsp;&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=" language-sas"&gt;proc sql;
    create table white as
        select * from have
        where color eq 'white';
    create table black as
        select * from have
        where color eq 'black';
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;Or with a data step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data white black;
    set have;
    if color='white' then output white;
    else if color='black' then output black;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600317#M173488</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-30T10:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600319#M173490</link>
      <description>&lt;P&gt;SQL cannot create more than one table in a single action. You need to run a separate create table for each newly created table.&lt;/P&gt;
&lt;P&gt;If you want to create more than one dataset from one existing dataset, SQL is the worst tool, use a data step instead, as you only need one pass through the input.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600319#M173490</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-30T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600320#M173491</link>
      <description>&lt;P&gt;I have a table wher i put conditions wit where , at last my new table contains only data that replay to conditions and I loose every Others, I need to have a table with data that don't replay to where conditions….&lt;/P&gt;&lt;P&gt;Tnks!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600320#M173491</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2019-10-30T10:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600321#M173492</link>
      <description>&lt;P&gt;Tnks for your kindly replay !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600321#M173492</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2019-10-30T10:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600323#M173494</link>
      <description>&lt;P&gt;Tnks for your kindly replay.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 10:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600323#M173494</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2019-10-30T10:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL  - CREATE TABLE WITH MORE THAN ONE TABLE AND CONDITION WHERE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600326#M173497</link>
      <description>You can mark the thread as solved by accepting one of the answers.&lt;BR /&gt;&lt;BR /&gt;Note that splitting datasets is rarely a good idea as SAS language is specifically designed to facilitate by group processing. What do you want to do that for ?</description>
      <pubDate>Wed, 30 Oct 2019 10:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-TABLE-WITH-MORE-THAN-ONE-TABLE-AND-CONDITION/m-p/600326#M173497</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2019-10-30T10:57:29Z</dc:date>
    </item>
  </channel>
</rss>

