<?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 SLQ; Create Table ... in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188803#M47750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table TAB(drop=NEWVAR:)&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from DATASET1 as a inner join&lt;/P&gt;&lt;P&gt;DATASET2(rename=(VAR1=NEWVAR1 VAR2=NEWVAR2 VAR3=NEWVAR3 VAR4=NEWVAR4 VAR5=NEWVAR5)) as b&lt;/P&gt;&lt;P&gt;on a.VAR1=b.NEWVAR1;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2015 14:23:37 GMT</pubDate>
    <dc:creator>chrej5am</dc:creator>
    <dc:date>2015-01-19T14:23:37Z</dc:date>
    <item>
      <title>Proc SLQ; Create Table ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188799#M47746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;A quick query re this procedure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a dataset from two other datasets, both of which have many columns of data. Both source datasets have 5 fields in common which I use to specify conditions i.e. where dataset1.field1 ge dataset2.field1, and so on. I select all fields by sepcifyuing select * as there are two many to list out but I get a green error message saying both fields contain the five fields in common which I use to set conditions. Is there a way of avoiding this? Can you select everything but drop five of the fields from one of the dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 13:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188799#M47746</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-01-19T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SLQ; Create Table ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188800#M47747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to avoid the warning you can use the following code. It renames the variables causing the trouble first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table TAB&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from DATASET1 as a inner join&lt;/P&gt;&lt;P&gt;DATASET2(rename=(VAR1=NEWVAR1 VAR2=NEWVAR2 VAR3=NEWVAR3 VAR4=NEWVAR4 VAR5=NEWVAR5)) as b&lt;/P&gt;&lt;P&gt;on a.VAR1=b.NEWVAR1;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 14:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188800#M47747</guid>
      <dc:creator>chrej5am</dc:creator>
      <dc:date>2015-01-19T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SLQ; Create Table ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188801#M47748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks chrej5am, and if you want to drop the new variables after they have served the purpose of setting the conditions where can you include the drop statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 14:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188801#M47748</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-01-19T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SLQ; Create Table ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188802#M47749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a view instead, an then have them dropped when creating the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 14:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188802#M47749</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-01-19T14:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SLQ; Create Table ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188803#M47750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table TAB(drop=NEWVAR:)&lt;/P&gt;&lt;P&gt;as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from DATASET1 as a inner join&lt;/P&gt;&lt;P&gt;DATASET2(rename=(VAR1=NEWVAR1 VAR2=NEWVAR2 VAR3=NEWVAR3 VAR4=NEWVAR4 VAR5=NEWVAR5)) as b&lt;/P&gt;&lt;P&gt;on a.VAR1=b.NEWVAR1;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 14:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188803#M47750</guid>
      <dc:creator>chrej5am</dc:creator>
      <dc:date>2015-01-19T14:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SLQ; Create Table ...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188804#M47751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you give some lines of code to demonstrate how this might be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 14:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-SLQ-Create-Table/m-p/188804#M47751</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-01-19T14:29:15Z</dc:date>
    </item>
  </channel>
</rss>

