<?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 SAS beginer - Issues faced when creating tables using proc sql in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-beginer-Issues-faced-when-creating-tables-using-proc-sql/m-p/574308#M12678</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table cars
as select * from SASHELP.cars;
quit;


&lt;FONT color="#FF0000"&gt;PG 1:
proc sql;
create table cars
as select * from SASHELP.cars;
quit;

log: 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars2
 75         as select * from SASHELP.cars
 76         where type in ("sports");
 NOTE: Table WORK.CARS2 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 92         

PG 2:
proc sql;
create table cars6
as select * from sashelp.cars
where model like 'T%';
quit;

Log:
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars6
 75         as select * from sashelp.cars
 76         where model like 'T%';
 NOTE: Table WORK.CARS6 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.02 seconds
       
 
 78         
 79         
 80         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 93         

PG 3:
proc sql;
create table cars7
as select * from sashelp.cars
where make like '%A';
quit;

LOG:
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars7
 75         as select * from sashelp.cars
 76         where make like '%A';
 NOTE: Table WORK.CARS7 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 92        &lt;/FONT&gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to create table from a external file using "where" and "Like" statements, the program tipped no glitch but no results were generated, In simple words no error shown in log but no results were created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly make use of the highlighted program and attached source file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I use university edition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 17:51:09 GMT</pubDate>
    <dc:creator>Deepak13</dc:creator>
    <dc:date>2019-07-17T17:51:09Z</dc:date>
    <item>
      <title>SAS beginer - Issues faced when creating tables using proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-beginer-Issues-faced-when-creating-tables-using-proc-sql/m-p/574308#M12678</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table cars
as select * from SASHELP.cars;
quit;


&lt;FONT color="#FF0000"&gt;PG 1:
proc sql;
create table cars
as select * from SASHELP.cars;
quit;

log: 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars2
 75         as select * from SASHELP.cars
 76         where type in ("sports");
 NOTE: Table WORK.CARS2 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 92         

PG 2:
proc sql;
create table cars6
as select * from sashelp.cars
where model like 'T%';
quit;

Log:
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars6
 75         as select * from sashelp.cars
 76         where model like 'T%';
 NOTE: Table WORK.CARS6 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.02 seconds
       
 
 78         
 79         
 80         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 93         

PG 3:
proc sql;
create table cars7
as select * from sashelp.cars
where make like '%A';
quit;

LOG:
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars7
 75         as select * from sashelp.cars
 76         where make like '%A';
 NOTE: Table WORK.CARS7 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 92        &lt;/FONT&gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to create table from a external file using "where" and "Like" statements, the program tipped no glitch but no results were generated, In simple words no error shown in log but no results were created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly make use of the highlighted program and attached source file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I use university edition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 17:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-beginer-Issues-faced-when-creating-tables-using-proc-sql/m-p/574308#M12678</guid>
      <dc:creator>Deepak13</dc:creator>
      <dc:date>2019-07-17T17:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginer - Issues faced when creating tables using proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-beginer-Issues-faced-when-creating-tables-using-proc-sql/m-p/574311#M12680</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; type &lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"sports"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Text comparisons are case sensitive. Fix the case to match the data and this should work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have similar issues with the rest of your queries, cars6 does not have any models that start with T.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 71                  proc sql;
 72                 create table cars2
 73                 as select * from SASHELP.cars
 74                 where type in ("Sports");
 NOTE: Table WORK.CARS2 created, with 49 rows and 15 columns.
 
 75                 create table cars6 as select * from sashelp.cars where model like 'T%';
 NOTE: Table WORK.CARS6 created, with 0 rows and 15 columns.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: It appears the Model has a leading space in the field in the SASHELP table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the second character is actually T. If you add a space it works correctly as expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272660"&gt;@Deepak13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table cars
as select * from SASHELP.cars;
quit;


&lt;FONT color="#FF0000"&gt;PG 1:
proc sql;
create table cars
as select * from SASHELP.cars;
quit;

log: 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars2
 75         as select * from SASHELP.cars
 76         where type in ("sports");
 NOTE: Table WORK.CARS2 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 92         

PG 2:
proc sql;
create table cars6
as select * from sashelp.cars
where model like 'T%';
quit;

Log:
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars6
 75         as select * from sashelp.cars
 76         where model like 'T%';
 NOTE: Table WORK.CARS6 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.02 seconds
       
 
 78         
 79         
 80         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 93         

PG 3:
proc sql;
create table cars7
as select * from sashelp.cars
where make like '%A';
quit;

LOG:
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         proc sql;
 74         create table cars7
 75         as select * from sashelp.cars
 76         where make like '%A';
 NOTE: Table WORK.CARS7 created, with 0 rows and 15 columns.
 
 77         quit;
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 78         
 79         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 92        &lt;/FONT&gt; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I tried to create table from a external file using "where" and "Like" statements, the program tipped no glitch but no results were generated, In simple words no error shown in log but no results were created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly make use of the highlighted program and attached source file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: I use university edition&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-beginer-Issues-faced-when-creating-tables-using-proc-sql/m-p/574311#M12680</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T18:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginer - Issues faced when creating tables using proc sql</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-beginer-Issues-faced-when-creating-tables-using-proc-sql/m-p/574419#M12696</link>
      <description>Many thanks for your constant support Reeza!</description>
      <pubDate>Thu, 18 Jul 2019 01:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-beginer-Issues-faced-when-creating-tables-using-proc-sql/m-p/574419#M12696</guid>
      <dc:creator>Deepak13</dc:creator>
      <dc:date>2019-07-18T01:57:29Z</dc:date>
    </item>
  </channel>
</rss>

