<?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: Create table like in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-table-like/m-p/805744#M317393</link>
    <description>&lt;P&gt;The code you proposed would create a new table but without any rows. Consider:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table work.cars like sashelp.cars;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A peek at the WORK library will reveal a table named &lt;STRONG&gt;cars&lt;/STRONG&gt;, but there are no data rows in the table - just the table structure.&lt;/P&gt;
&lt;P&gt;To make a COPY of the table, including some of the data from the original table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table cars as
select * from sashelp.cars where Make='Audi';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now a peek at the WORK library will reveal a table named &lt;STRONG&gt;cars&lt;/STRONG&gt; with all of the columns from the original table, but only rows where the Make is Audi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Apr 2022 19:42:52 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2022-04-03T19:42:52Z</dc:date>
    <item>
      <title>Create table like</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-table-like/m-p/804474#M316803</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;i would like to create a table using proc fedsql but i can not find how.&lt;/P&gt;
&lt;P&gt;same like this procedure&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table casuser.x like biblio.y;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 09:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-table-like/m-p/804474#M316803</guid>
      <dc:creator>aloou</dc:creator>
      <dc:date>2022-03-28T09:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create table like</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-table-like/m-p/805744#M317393</link>
      <description>&lt;P&gt;The code you proposed would create a new table but without any rows. Consider:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table work.cars like sashelp.cars;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A peek at the WORK library will reveal a table named &lt;STRONG&gt;cars&lt;/STRONG&gt;, but there are no data rows in the table - just the table structure.&lt;/P&gt;
&lt;P&gt;To make a COPY of the table, including some of the data from the original table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table cars as
select * from sashelp.cars where Make='Audi';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now a peek at the WORK library will reveal a table named &lt;STRONG&gt;cars&lt;/STRONG&gt; with all of the columns from the original table, but only rows where the Make is Audi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 19:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-table-like/m-p/805744#M317393</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-04-03T19:42:52Z</dc:date>
    </item>
  </channel>
</rss>

