<?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: Why won't SAS leave my RDBMS case-sensitive table names alone? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-won-t-SAS-leave-my-RDBMS-case-sensitive-table-names-alone/m-p/565455#M158765</link>
    <description>&lt;P&gt;Ok, so the workaround is to not use PROC COPY:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%kill(lib=tmp,data=apdc_sample_df apdc_sample_hf);
data tmp.apdc_sample_df;
   set work.apdc_sample_df;
run;
data tmp.apdc_sample_hf;
   set work.apdc_sample_hf;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(KILL):   proc sql noprint;
MPRINT(KILL):   select readonly into :readonly separated by " " from dictionary.libnames where upcase(libname) = "TMP" ;
MPRINT(KILL):   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              165.59k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:28 PM
      

ODBC: Called SQLTables with schema of tmp
MPRINT(KILL):   proc datasets lib=TMP memtype=(DATA VIEW) nolist nowarn;
5 The SAS System                                                                            18:48 Tuesday, June 11, 2019

MPRINT(KILL):  delete apdc_sample_df apdc_sample_hf;
MPRINT(KILL):   quit;

NOTE: Deleting TMP.apdc_sample_df (memtype=DATA).
 
ODBC_392: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_df" WHERE 0=1 
 
 
ODBC_393: Executed: on connection 6
DROP  TABLE "tmp"."apdc_sample_df"
 
NOTE: Deleting TMP.apdc_sample_hf (memtype=DATA).
 
ODBC_394: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_hf" WHERE 0=1 
 
 
ODBC_395: Executed: on connection 6
DROP  TABLE "tmp"."apdc_sample_hf"
 
NOTE: PROCEDURE DATASETS used (Total process time):
      real time           0.10 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              138.87k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:28 PM
      

MPRINT(CODE):  ;
MPRINT(CODE):   data tmp.apdc_sample_df;
MPRINT(CODE):   set work.apdc_sample_df;
MPRINT(CODE):   run;
 
ODBC_396: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_df" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
 
ODBC_397: Executed: on connection 7
CREATE TABLE "tmp"."apdc_sample_df" ("source_id" varchar(4),"cherel_id" varchar(11),"recid_pf" varchar(2),"recid_s" 
varchar(10),"ppn" varchar(14),"pfn" varchar(14),"code1" varchar(3),"value1" varchar(14),"desc1" varchar(200),"code2" 
varchar(3),"value2" varchar(14),"desc2" varchar(200),"code3" varchar(3),"value3" varchar(14),"desc3" 
varchar(200),"endflag" varchar(1),"facility_identifier" varchar(4),"stay_number_e" 
varchar(40),"episode_sequence_number" int)
 
6 The SAS System                                                                            18:48 Tuesday, June 11, 2019

ODBC: COMMIT performed on connection 7.
NOTE: There were 100000 observations read from the data set WORK.APDC_SAMPLE_DF.
NOTE: The data set TMP.apdc_sample_df has 100000 observations and 19 variables.
NOTE: DATA statement used (Total process time):
      real time           0.93 seconds
      user cpu time       0.84 seconds
      system cpu time     0.04 seconds
      memory              383.06k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:29 PM
      

MPRINT(CODE):   data tmp.apdc_sample_hf;
MPRINT(CODE):   set work.apdc_sample_hf;
MPRINT(CODE):   run;

 
ODBC_398: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_hf" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
 
ODBC_399: Executed: on connection 7
CREATE TABLE "tmp"."apdc_sample_hf" ("source_id" varchar(4),"file_creation_date_hrlo" varchar(8),"moh_project_id" 
varchar(10),"project_name" varchar(64),"moh_service_id" varchar(4),"moh_batch_id" varchar(2),"total_moh_src_codes" 
varchar(2),"total_src_codes" varchar(2),"hrlo_code" varchar(1),"hrlo_service_id" varchar(11),"total_recs" 
float,"unique_ppns" float,"unique_pfns" float,"moh_mlk_service_id" float)
 
ODBC: COMMIT performed on connection 7.
NOTE: There were 1 observations read from the data set WORK.APDC_SAMPLE_HF.
NOTE: The data set TMP.apdc_sample_hf has 1 observations and 14 variables.
NOTE: DATA statement used (Total process time):
      real time           0.06 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              310.59k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:29 PM
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Jun 2019 02:21:26 GMT</pubDate>
    <dc:creator>ScottBass</dc:creator>
    <dc:date>2019-06-12T02:21:26Z</dc:date>
    <item>
      <title>Why won't SAS leave my RDBMS case-sensitive table names alone?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-won-t-SAS-leave-my-RDBMS-case-sensitive-table-names-alone/m-p/565454#M158764</link>
      <description>&lt;P&gt;SAS 9.3&lt;/P&gt;
&lt;P&gt;ODBC engine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run this code, where the TMP library is an ODBC connection to a case-sensitive SQL Server database:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%kill(lib=tmp,data=apdc_sample_df apdc_sample_hf);
proc copy in=work out=tmp;
   select apdc_sample_df apdc_sample_hf;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/scottbass/SAS/blob/master/Macro/kill.sas" target="_blank" rel="noopener"&gt;https://github.com/scottbass/SAS/blob/master/Macro/kill.sas&lt;/A&gt;&amp;nbsp;is just a wrapper around PROC DATASETS; DELETE ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS log for run #1, where the target tables don't exist in the database:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;27         %kill(lib=tmp,data=apdc_sample_df apdc_sample_hf);


MPRINT(KILL):   proc sql noprint;
MPRINT(KILL):   select readonly into :readonly separated by " " from dictionary.libnames where upcase(libname) = "TMP" ;
MPRINT(KILL):   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              165.09k
      OS Memory           19748.00k
      Timestamp           12/06/2019 11:52:38 AM
      

ODBC: Called SQLTables with schema of tmp
MPRINT(KILL):   proc datasets lib=TMP memtype=(DATA VIEW) nolist nowarn;
MPRINT(KILL):  delete apdc_sample_df apdc_sample_hf;
MPRINT(KILL):   quit;

2 The SAS System                                                                            18:48 Tuesday, June 11, 2019

NOTE: PROCEDURE DATASETS used (Total process time):
      real time           0.01 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              89.53k
      OS Memory           19748.00k
      Timestamp           12/06/2019 11:52:38 AM
      

28         proc copy in=work out=tmp;
29            select apdc_sample_df apdc_sample_hf;
30         run;

NOTE: Copying WORK.APDC_SAMPLE_DF to TMP.APDC_SAMPLE_DF (memtype=DATA).
 
ODBC_310: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_DF" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
INFO: Data set block I/O cannot be used because:
INFO:   -  The data sets use different engines, have different variables or have attributes that may differ.
 
ODBC_311: Executed: on connection 7
CREATE TABLE "tmp"."APDC_SAMPLE_DF" ("source_id" varchar(4),"cherel_id" varchar(11),"recid_pf" varchar(2),"recid_s" 
varchar(10),"ppn" varchar(14),"pfn" varchar(14),"code1" varchar(3),"value1" varchar(14),"desc1" varchar(200),"code2" 
varchar(3),"value2" varchar(14),"desc2" varchar(200),"code3" varchar(3),"value3" varchar(14),"desc3" 
varchar(200),"endflag" varchar(1),"facility_identifier" varchar(4),"stay_number_e" 
varchar(40),"episode_sequence_number" int)
 
ODBC: COMMIT performed on connection 7.
NOTE: There were 100000 observations read from the data set WORK.APDC_SAMPLE_DF.
NOTE: The data set TMP.APDC_SAMPLE_DF has 100000 observations and 19 variables.
NOTE: Copying WORK.APDC_SAMPLE_HF to TMP.APDC_SAMPLE_HF (memtype=DATA).
 
ODBC_312: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_HF" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
INFO: Data set block I/O cannot be used because:
INFO:   -  The data sets use different engines, have different variables or have attributes that may differ.
 
ODBC_313: Executed: on connection 7
CREATE TABLE "tmp"."APDC_SAMPLE_HF" ("source_id" varchar(4),"file_creation_date_hrlo" varchar(8),"moh_project_id" 
varchar(10),"project_name" varchar(64),"moh_service_id" varchar(4),"moh_batch_id" varchar(2),"total_moh_src_codes" 
varchar(2),"total_src_codes" varchar(2),"hrlo_code" varchar(1),"hrlo_service_id" varchar(11),"total_recs" 
float,"unique_ppns" float,"unique_pfns" float,"moh_mlk_service_id" float)
 
3 The SAS System                                                                            18:48 Tuesday, June 11, 2019

ODBC: COMMIT performed on connection 7.
NOTE: There were 1 observations read from the data set WORK.APDC_SAMPLE_HF.
NOTE: The data set TMP.APDC_SAMPLE_HF has 1 observations and 14 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           1.15 seconds
      user cpu time       0.88 seconds
      system cpu time     0.01 seconds
      memory              319.71k
      OS Memory           19748.00k
      Timestamp           12/06/2019 11:52:39 AM&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is at this point I note that I have the tables tmp.APDC_SAMPLE_DF and tmp.APDC_SAMPLE_HF in my database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I wanted capitalized table names, I would have coded it that way.&amp;nbsp; I want the table names as lower case.&amp;nbsp; My downstream code is using explicit passthrough, where the case-sensitivity of the table names matters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS log for run #2, where the above target tables now exist in the database:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;27         %kill(lib=tmp,data=apdc_sample_df apdc_sample_hf);
MPRINT(KILL):   proc sql noprint;
MPRINT(KILL):   select readonly into :readonly separated by " " from dictionary.libnames where upcase(libname) = "TMP" ;
MPRINT(KILL):   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.01 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              165.18k
      OS Memory           19748.00k
      Timestamp           12/06/2019 11:55:48 AM
      

ODBC: Called SQLTables with schema of tmp
MPRINT(KILL):   proc datasets lib=TMP memtype=(DATA VIEW) nolist nowarn;
MPRINT(KILL):  delete apdc_sample_df apdc_sample_hf;
MPRINT(KILL):   quit;

NOTE: PROCEDURE DATASETS used (Total process time):
      real time           0.00 seconds
2 The SAS System                                                                            18:48 Tuesday, June 11, 2019

      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              89.59k
      OS Memory           19748.00k
      Timestamp           12/06/2019 11:55:48 AM
      

28         proc copy in=work out=tmp;
29            select apdc_sample_df apdc_sample_hf;
30         run;

NOTE: Copying WORK.APDC_SAMPLE_DF to TMP.APDC_SAMPLE_DF (memtype=DATA).
 
ODBC_316: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_DF" WHERE 0=1 
 
ERROR: The ODBC table APDC_SAMPLE_DF has been opened for OUTPUT. This table already exists, or there is a name conflict 
       with an existing object. This table will not be replaced. This engine does not support the REPLACE option.
ERROR: File TMP.APDC_SAMPLE_DF.DATA has not been saved because copy could not be completed.
NOTE: Copying WORK.APDC_SAMPLE_HF to TMP.APDC_SAMPLE_HF (memtype=DATA).
 
ODBC_317: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_HF" WHERE 0=1 
 
ERROR: The ODBC table APDC_SAMPLE_HF has been opened for OUTPUT. This table already exists, or there is a name conflict 
       with an existing object. This table will not be replaced. This engine does not support the REPLACE option.
ERROR: File TMP.APDC_SAMPLE_HF.DATA has not been saved because copy could not be completed.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.01 seconds
      user cpu time       0.00 seconds
      system cpu time     0.01 seconds
      memory              220.00k
      OS Memory           19748.00k
      Timestamp           12/06/2019 11:55:48 AM
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Trying one more run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;27         %kill(lib=tmp,data=APDC_SAMPLE_DF APDC_SAMPLE_HF);


MPRINT(KILL):   proc sql noprint;
MPRINT(KILL):   select readonly into :readonly separated by " " from dictionary.libnames where upcase(libname) = "TMP" ;
MPRINT(KILL):   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              167.34k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:06:06 PM
      

ODBC: Called SQLTables with schema of tmp
MPRINT(KILL):   proc datasets lib=TMP memtype=(DATA VIEW) nolist nowarn;
MPRINT(KILL):  delete APDC_SAMPLE_DF APDC_SAMPLE_HF;
MPRINT(KILL):   quit;

2 The SAS System                                                                            18:48 Tuesday, June 11, 2019

NOTE: Deleting TMP.APDC_SAMPLE_DF (memtype=DATA).
 
ODBC_318: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_DF" WHERE 0=1 
 
 
ODBC_319: Executed: on connection 6
DROP  TABLE "tmp"."APDC_SAMPLE_DF"
 
NOTE: Deleting TMP.APDC_SAMPLE_HF (memtype=DATA).
 
ODBC_320: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_HF" WHERE 0=1 
 
 
ODBC_321: Executed: on connection 6
DROP  TABLE "tmp"."APDC_SAMPLE_HF"
 
NOTE: PROCEDURE DATASETS used (Total process time):
      real time           0.04 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              138.25k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:06:06 PM
      

28         proc copy in=work out=tmp;
29            select apdc_sample_df apdc_sample_hf;
30         run;

NOTE: Copying WORK.APDC_SAMPLE_DF to TMP.APDC_SAMPLE_DF (memtype=DATA).
 
ODBC_322: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_DF" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
INFO: Data set block I/O cannot be used because:
INFO:   -  The data sets use different engines, have different variables or have attributes that may differ.
 
ODBC_323: Executed: on connection 7
CREATE TABLE "tmp"."APDC_SAMPLE_DF" ("source_id" varchar(4),"cherel_id" varchar(11),"recid_pf" varchar(2),"recid_s" 
varchar(10),"ppn" varchar(14),"pfn" varchar(14),"code1" varchar(3),"value1" varchar(14),"desc1" varchar(200),"code2" 
varchar(3),"value2" varchar(14),"desc2" varchar(200),"code3" varchar(3),"value3" varchar(14),"desc3" 
varchar(200),"endflag" varchar(1),"facility_identifier" varchar(4),"stay_number_e" 
varchar(40),"episode_sequence_number" int)
 
3 The SAS System                                                                            18:48 Tuesday, June 11, 2019

ODBC: COMMIT performed on connection 7.
NOTE: There were 100000 observations read from the data set WORK.APDC_SAMPLE_DF.
NOTE: The data set TMP.APDC_SAMPLE_DF has 100000 observations and 19 variables.
NOTE: Copying WORK.APDC_SAMPLE_HF to TMP.APDC_SAMPLE_HF (memtype=DATA).
 
ODBC_324: Prepared: on connection 6
SELECT * FROM "tmp"."APDC_SAMPLE_HF" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
INFO: Data set block I/O cannot be used because:
INFO:   -  The data sets use different engines, have different variables or have attributes that may differ.
 
ODBC_325: Executed: on connection 7
CREATE TABLE "tmp"."APDC_SAMPLE_HF" ("source_id" varchar(4),"file_creation_date_hrlo" varchar(8),"moh_project_id" 
varchar(10),"project_name" varchar(64),"moh_service_id" varchar(4),"moh_batch_id" varchar(2),"total_moh_src_codes" 
varchar(2),"total_src_codes" varchar(2),"hrlo_code" varchar(1),"hrlo_service_id" varchar(11),"total_recs" 
float,"unique_ppns" float,"unique_pfns" float,"moh_mlk_service_id" float)
 
ODBC: COMMIT performed on connection 7.
NOTE: There were 1 observations read from the data set WORK.APDC_SAMPLE_HF.
NOTE: The data set TMP.APDC_SAMPLE_HF has 1 observations and 14 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           1.24 seconds
      user cpu time       0.98 seconds
      system cpu time     0.01 seconds
      memory              317.62k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:06:07 PM&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Ok, so that works, although I still have the problem of capitalized table names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So whatever SAS is doing under the covers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;PROC DATASETS doesn't detect the lowercase table names, and thus doesn't delete them.&amp;nbsp; It's as though it doesn't implicitly capitalize the table names in the way PROC COPY did?&amp;nbsp; Not that I wanted the capitalized table names in the first place.&lt;/LI&gt;
&lt;LI&gt;So PROC COPY fails since the ODBC engine doesn't support REPLACEing a table.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%kill(lib=tmp,data=apdc_sample_df apdc_sample_hf);
proc copy in=work out=tmp;
   select 'apdc_sample_df'n 'apdc_sample_hf'n;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but no joy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why won't SAS just leave my code alone?&amp;nbsp; Is this an issue with the ODBC driver, rather than SAS?&amp;nbsp; SAS and ODBC have been around a long time, why is this still an issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll eventually find a workaround, but the current functionality is a PITA.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 03:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-won-t-SAS-leave-my-RDBMS-case-sensitive-table-names-alone/m-p/565454#M158764</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-06-12T03:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't SAS leave my RDBMS case-sensitive table names alone?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-won-t-SAS-leave-my-RDBMS-case-sensitive-table-names-alone/m-p/565455#M158765</link>
      <description>&lt;P&gt;Ok, so the workaround is to not use PROC COPY:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%kill(lib=tmp,data=apdc_sample_df apdc_sample_hf);
data tmp.apdc_sample_df;
   set work.apdc_sample_df;
run;
data tmp.apdc_sample_hf;
   set work.apdc_sample_hf;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MPRINT(KILL):   proc sql noprint;
MPRINT(KILL):   select readonly into :readonly separated by " " from dictionary.libnames where upcase(libname) = "TMP" ;
MPRINT(KILL):   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              165.59k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:28 PM
      

ODBC: Called SQLTables with schema of tmp
MPRINT(KILL):   proc datasets lib=TMP memtype=(DATA VIEW) nolist nowarn;
5 The SAS System                                                                            18:48 Tuesday, June 11, 2019

MPRINT(KILL):  delete apdc_sample_df apdc_sample_hf;
MPRINT(KILL):   quit;

NOTE: Deleting TMP.apdc_sample_df (memtype=DATA).
 
ODBC_392: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_df" WHERE 0=1 
 
 
ODBC_393: Executed: on connection 6
DROP  TABLE "tmp"."apdc_sample_df"
 
NOTE: Deleting TMP.apdc_sample_hf (memtype=DATA).
 
ODBC_394: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_hf" WHERE 0=1 
 
 
ODBC_395: Executed: on connection 6
DROP  TABLE "tmp"."apdc_sample_hf"
 
NOTE: PROCEDURE DATASETS used (Total process time):
      real time           0.10 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              138.87k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:28 PM
      

MPRINT(CODE):  ;
MPRINT(CODE):   data tmp.apdc_sample_df;
MPRINT(CODE):   set work.apdc_sample_df;
MPRINT(CODE):   run;
 
ODBC_396: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_df" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
 
ODBC_397: Executed: on connection 7
CREATE TABLE "tmp"."apdc_sample_df" ("source_id" varchar(4),"cherel_id" varchar(11),"recid_pf" varchar(2),"recid_s" 
varchar(10),"ppn" varchar(14),"pfn" varchar(14),"code1" varchar(3),"value1" varchar(14),"desc1" varchar(200),"code2" 
varchar(3),"value2" varchar(14),"desc2" varchar(200),"code3" varchar(3),"value3" varchar(14),"desc3" 
varchar(200),"endflag" varchar(1),"facility_identifier" varchar(4),"stay_number_e" 
varchar(40),"episode_sequence_number" int)
 
6 The SAS System                                                                            18:48 Tuesday, June 11, 2019

ODBC: COMMIT performed on connection 7.
NOTE: There were 100000 observations read from the data set WORK.APDC_SAMPLE_DF.
NOTE: The data set TMP.apdc_sample_df has 100000 observations and 19 variables.
NOTE: DATA statement used (Total process time):
      real time           0.93 seconds
      user cpu time       0.84 seconds
      system cpu time     0.04 seconds
      memory              383.06k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:29 PM
      

MPRINT(CODE):   data tmp.apdc_sample_hf;
MPRINT(CODE):   set work.apdc_sample_hf;
MPRINT(CODE):   run;

 
ODBC_398: Prepared: on connection 6
SELECT * FROM "tmp"."apdc_sample_hf" WHERE 0=1 
 
ODBC: AUTOCOMMIT is NO for connection 7
 
ODBC_399: Executed: on connection 7
CREATE TABLE "tmp"."apdc_sample_hf" ("source_id" varchar(4),"file_creation_date_hrlo" varchar(8),"moh_project_id" 
varchar(10),"project_name" varchar(64),"moh_service_id" varchar(4),"moh_batch_id" varchar(2),"total_moh_src_codes" 
varchar(2),"total_src_codes" varchar(2),"hrlo_code" varchar(1),"hrlo_service_id" varchar(11),"total_recs" 
float,"unique_ppns" float,"unique_pfns" float,"moh_mlk_service_id" float)
 
ODBC: COMMIT performed on connection 7.
NOTE: There were 1 observations read from the data set WORK.APDC_SAMPLE_HF.
NOTE: The data set TMP.apdc_sample_hf has 1 observations and 14 variables.
NOTE: DATA statement used (Total process time):
      real time           0.06 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              310.59k
      OS Memory           19748.00k
      Timestamp           12/06/2019 12:18:29 PM
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jun 2019 02:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-won-t-SAS-leave-my-RDBMS-case-sensitive-table-names-alone/m-p/565455#M158765</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-06-12T02:21:26Z</dc:date>
    </item>
  </channel>
</rss>

