<?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: Dataset creation does not warn existing table will be overwrittten in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dataset-creation-does-not-warn-existing-table-will-be/m-p/773199#M245584</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/402184"&gt;@Rajesh3030&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might be due to different settings of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n16q7psnp46obtn1hqbni4o7f6qg.htm" target="_blank" rel="noopener"&gt;REPLACE system option&lt;/A&gt;. You can see in the log below how it works:&lt;/P&gt;
&lt;PRE&gt;1    /* Check setting of REPLACE system option */
2
3    proc options option=replace;
4    run;

    SAS (r) Proprietary Software Release 9.4  TS1M5

 REPLACE           Enables replacement of permanent SAS data sets.
&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE OPTIONS used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
&lt;/FONT&gt;

5
6    libname ct 'C:\Temp';
&lt;FONT color="#0000FF"&gt;NOTE: Libref CT was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Temp&lt;/FONT&gt;
7
8    /* Create permanent dataset */
9
10   data ct.test;
11   set sashelp.heart(obs=4);
12   run;

&lt;FONT color="#0000FF"&gt;NOTE: There were 4 observations read from the data set SASHELP.HEART.
NOTE: The data set CT.TEST has 4 observations and 17 variables.
NOTE: DATA statement used (Total process time):
      real time           0.04 seconds
      cpu time            0.03 seconds&lt;/FONT&gt;


13
14   /* Replace it */
15
16   proc sort data=sashelp.class(obs=3) out=ct.test;
17   by age;
18   run;

&lt;FONT color="#0000FF"&gt;NOTE: There were 3 observations read from the data set SASHELP.CLASS.
NOTE: SAS sort was used.
NOTE: The data set CT.TEST has 3 observations and 5 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
&lt;/FONT&gt;

19
20   &lt;STRONG&gt;options noreplace;&lt;/STRONG&gt;
21
22   /* Now this fails to replace it (in spite of the subsequent NOTE in the log) */
23
24   data ct.test;
25   x=1;
26   run;

&lt;FONT color="#0000FF"&gt;NOTE: The data set CT.TEST has 1 observations and 1 variables.&lt;/FONT&gt;
&lt;STRONG&gt;&lt;FONT color="#008000"&gt;WARNING: Data set CT.TEST was not replaced because of NOREPLACE option.&lt;/FONT&gt;&lt;/STRONG&gt;
&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds&lt;/FONT&gt;


27
28   /* Use dataset option REPLACE= to override the system option */
29
30   proc summary data=sashelp.cars;
31   var weight;
32   output out=ct.test(replace=yes);
33   run;

&lt;FONT color="#0000FF"&gt;NOTE: Multiple concurrent threads will be used to summarize data.
NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: The data set CT.TEST has 5 observations and 4 variables.
NOTE: PROCEDURE SUMMARY used (Total process time):
      real time           0.03 seconds
      cpu time            0.03 seconds&lt;/FONT&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 09 Oct 2021 08:25:23 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-10-09T08:25:23Z</dc:date>
    <item>
      <title>Dataset creation does not warn existing table will be overwrittten</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-creation-does-not-warn-existing-table-will-be/m-p/773193#M245582</link>
      <description>&lt;P&gt;I just swtiched to EG version of SAS, when ever i create the data set (not in work profile) under library space, i am not getting below warning like I had in Base SAS . There should be someway&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Warning&amp;nbsp;&lt;/P&gt;&lt;P&gt;Existing dataset already exist , you are to overwrite (something like this )&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 07:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-creation-does-not-warn-existing-table-will-be/m-p/773193#M245582</guid>
      <dc:creator>Rajesh3030</dc:creator>
      <dc:date>2021-10-09T07:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset creation does not warn existing table will be overwrittten</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dataset-creation-does-not-warn-existing-table-will-be/m-p/773199#M245584</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/402184"&gt;@Rajesh3030&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might be due to different settings of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n16q7psnp46obtn1hqbni4o7f6qg.htm" target="_blank" rel="noopener"&gt;REPLACE system option&lt;/A&gt;. You can see in the log below how it works:&lt;/P&gt;
&lt;PRE&gt;1    /* Check setting of REPLACE system option */
2
3    proc options option=replace;
4    run;

    SAS (r) Proprietary Software Release 9.4  TS1M5

 REPLACE           Enables replacement of permanent SAS data sets.
&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE OPTIONS used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
&lt;/FONT&gt;

5
6    libname ct 'C:\Temp';
&lt;FONT color="#0000FF"&gt;NOTE: Libref CT was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Temp&lt;/FONT&gt;
7
8    /* Create permanent dataset */
9
10   data ct.test;
11   set sashelp.heart(obs=4);
12   run;

&lt;FONT color="#0000FF"&gt;NOTE: There were 4 observations read from the data set SASHELP.HEART.
NOTE: The data set CT.TEST has 4 observations and 17 variables.
NOTE: DATA statement used (Total process time):
      real time           0.04 seconds
      cpu time            0.03 seconds&lt;/FONT&gt;


13
14   /* Replace it */
15
16   proc sort data=sashelp.class(obs=3) out=ct.test;
17   by age;
18   run;

&lt;FONT color="#0000FF"&gt;NOTE: There were 3 observations read from the data set SASHELP.CLASS.
NOTE: SAS sort was used.
NOTE: The data set CT.TEST has 3 observations and 5 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
&lt;/FONT&gt;

19
20   &lt;STRONG&gt;options noreplace;&lt;/STRONG&gt;
21
22   /* Now this fails to replace it (in spite of the subsequent NOTE in the log) */
23
24   data ct.test;
25   x=1;
26   run;

&lt;FONT color="#0000FF"&gt;NOTE: The data set CT.TEST has 1 observations and 1 variables.&lt;/FONT&gt;
&lt;STRONG&gt;&lt;FONT color="#008000"&gt;WARNING: Data set CT.TEST was not replaced because of NOREPLACE option.&lt;/FONT&gt;&lt;/STRONG&gt;
&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds&lt;/FONT&gt;


27
28   /* Use dataset option REPLACE= to override the system option */
29
30   proc summary data=sashelp.cars;
31   var weight;
32   output out=ct.test(replace=yes);
33   run;

&lt;FONT color="#0000FF"&gt;NOTE: Multiple concurrent threads will be used to summarize data.
NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: The data set CT.TEST has 5 observations and 4 variables.
NOTE: PROCEDURE SUMMARY used (Total process time):
      real time           0.03 seconds
      cpu time            0.03 seconds&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Oct 2021 08:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dataset-creation-does-not-warn-existing-table-will-be/m-p/773199#M245584</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-10-09T08:25:23Z</dc:date>
    </item>
  </channel>
</rss>

