<?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 PROC SQL - CREATE NEW TABLE DOES NOT WORK in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-NEW-TABLE-DOES-NOT-WORK/m-p/888714#M351107</link>
    <description>&lt;P&gt;Hi - I'm trying to create new table with proc sql as below (I take it from sas guideline:&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/ja/vdmmlcdc/8.1/sqlproc/n1ncn0pznd8wrln1tnp3xdxjz9xz.htm" target="_self"&gt;https://documentation.sas.com/doc/ja/vdmmlcdc/8.1/sqlproc/n1ncn0pznd8wrln1tnp3xdxjz9xz.htm&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;The query run successfully without no error, but when I refresh the libname 'proclib' created in the code, it keeps refreshing and hasn't stopped for 3-4 hours. C&lt;SPAN&gt;an someone please explain me what's wrong here? Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname proclib 'SAS-library';
proc sql;
   create table proclib.paylist
       (IdNum char(4),
        Gender char(1),
        Jobcode char(3),
        Salary num,
        Birth num informat=date7.
                  format=date7.,
        Hired num informat=date7.
                  format=date7.);
insert into proclib.paylist
    values('1639','F','TA1',42260,'26JUN70'd,'28JAN91'd)
    values('1065','M','ME3',38090,'26JAN54'd,'07JAN92'd)
    values('1400','M','ME1',29769.'05NOV67'd,'16OCT90'd)
values('1561','M',null,36514,'30NOV63'd,'07OCT87'd)
    values('1221','F','FA3',.,'22SEP63'd,'04OCT94'd);
title 'Proclib.Paylist Table';
select *
   from proclib.paylist;
proc printto; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;The 'proclib' keeps refreshing:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86595iCC07D2187F8C6942/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 04:28:02 GMT</pubDate>
    <dc:creator>lyth_abb</dc:creator>
    <dc:date>2023-08-10T04:28:02Z</dc:date>
    <item>
      <title>PROC SQL - CREATE NEW TABLE DOES NOT WORK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-NEW-TABLE-DOES-NOT-WORK/m-p/888714#M351107</link>
      <description>&lt;P&gt;Hi - I'm trying to create new table with proc sql as below (I take it from sas guideline:&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/ja/vdmmlcdc/8.1/sqlproc/n1ncn0pznd8wrln1tnp3xdxjz9xz.htm" target="_self"&gt;https://documentation.sas.com/doc/ja/vdmmlcdc/8.1/sqlproc/n1ncn0pznd8wrln1tnp3xdxjz9xz.htm&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;The query run successfully without no error, but when I refresh the libname 'proclib' created in the code, it keeps refreshing and hasn't stopped for 3-4 hours. C&lt;SPAN&gt;an someone please explain me what's wrong here? Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname proclib 'SAS-library';
proc sql;
   create table proclib.paylist
       (IdNum char(4),
        Gender char(1),
        Jobcode char(3),
        Salary num,
        Birth num informat=date7.
                  format=date7.,
        Hired num informat=date7.
                  format=date7.);
insert into proclib.paylist
    values('1639','F','TA1',42260,'26JUN70'd,'28JAN91'd)
    values('1065','M','ME3',38090,'26JAN54'd,'07JAN92'd)
    values('1400','M','ME1',29769.'05NOV67'd,'16OCT90'd)
values('1561','M',null,36514,'30NOV63'd,'07OCT87'd)
    values('1221','F','FA3',.,'22SEP63'd,'04OCT94'd);
title 'Proclib.Paylist Table';
select *
   from proclib.paylist;
proc printto; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;The 'proclib' keeps refreshing:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86595iCC07D2187F8C6942/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 04:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-NEW-TABLE-DOES-NOT-WORK/m-p/888714#M351107</guid>
      <dc:creator>lyth_abb</dc:creator>
      <dc:date>2023-08-10T04:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - CREATE NEW TABLE DOES NOT WORK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-NEW-TABLE-DOES-NOT-WORK/m-p/888715#M351108</link>
      <description>&lt;P&gt;Your code works "as is" in my SAS9.4 M7 environment under RHEL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Always finish a Proc SQL with a QUIT&amp;nbsp; - may-be that's the issue in your environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here what I've run without any issues.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname proclib "%sysfunc(pathname(work))";

proc sql;
  create table proclib.paylist
    (IdNum char(4),
    Gender char(1),
    Jobcode char(3),
    Salary num,
    Birth num informat=date7.
    format=date7.,
    Hired num informat=date7.
    format=date7.);
  insert into proclib.paylist
    values('1639','F','TA1',42260,'26JUN70'd,'28JAN91'd)
    values('1065','M','ME3',38090,'26JAN54'd,'07JAN92'd)
    values('1400','M','ME1',29769.'05NOV67'd,'16OCT90'd)
    values('1561','M',null,36514,'30NOV63'd,'07OCT87'd)
    values('1221','F','FA3',.,'22SEP63'd,'04OCT94'd);
  title 'Proclib.Paylist Table';
  select *
    from proclib.paylist;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2023 04:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-NEW-TABLE-DOES-NOT-WORK/m-p/888715#M351108</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-08-10T04:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL - CREATE NEW TABLE DOES NOT WORK</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-NEW-TABLE-DOES-NOT-WORK/m-p/888716#M351109</link>
      <description>Oh many thanks for your quick reply, it works perfectly!!</description>
      <pubDate>Thu, 10 Aug 2023 04:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-CREATE-NEW-TABLE-DOES-NOT-WORK/m-p/888716#M351109</guid>
      <dc:creator>lyth_abb</dc:creator>
      <dc:date>2023-08-10T04:41:45Z</dc:date>
    </item>
  </channel>
</rss>

