<?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: Replacing Worktables Automatically when Loading from SAS DI Studio to Snowflake in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replacing-Worktables-Automatically-when-Loading-from-SAS-DI/m-p/898283#M355040</link>
    <description>&lt;P&gt;For work tables, i suggest that you take a look at the DBMSTEMP= option.&lt;/P&gt;
&lt;P&gt;That itself might&amp;nbsp; not solve your problem if you wish to rerun a transformation&lt;SPAN&gt; interactively in DI Studio. Disconnecting from your workspace server or de-assigning the libref would remove the work table though.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;What you really want is a way to specify something corresponding to&lt;/P&gt;
&lt;P&gt;CREATE OR REPLACE&lt;/P&gt;
&lt;P&gt;in Snowflake. Not sure how to do that without having to resort to user written code...&lt;/P&gt;
&lt;P&gt;There's a REPLACE= data set option, but I don't think works for anything other than permanent SAS datasets.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 14:20:32 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2023-10-16T14:20:32Z</dc:date>
    <item>
      <title>Replacing Worktables Automatically when Loading from SAS DI Studio to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-Worktables-Automatically-when-Loading-from-SAS-DI/m-p/898118#M354977</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm currently facing an issue with SAS Data Integration Studio while attempting to upload tables to Snowflake, including the worktables generated during transformations.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt; The connection to Snowflake is established successfully, and I can upload tables without any problem. However, my main challenge lies with worktables. When I execute the job multiple times, I receive an error indicating that the table already exists. I want the worktables to be replaced automatically instead of SAS Data Integration Studio attempting to create them again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my SAS Data Integration Studio transformation Extract, I've used the following LIBNAME statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LIBNAME snowlib SASIOSNF DATABASE=snowflakedatabase DSN=snowflake SCHEMA=PUBLIC AUTHDOMAIN="XXX" ;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The transformation was executed once, and the worktable is now on Snowflake. However, I can't execute the transformation multiple times due to the error message indicating that the table already exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to configure the library settings so that the tables are automatically replaced when the job is executed again?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 12:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-Worktables-Automatically-when-Loading-from-SAS-DI/m-p/898118#M354977</guid>
      <dc:creator>jozumhannes</dc:creator>
      <dc:date>2023-10-11T12:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Worktables Automatically when Loading from SAS DI Studio to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-Worktables-Automatically-when-Loading-from-SAS-DI/m-p/898283#M355040</link>
      <description>&lt;P&gt;For work tables, i suggest that you take a look at the DBMSTEMP= option.&lt;/P&gt;
&lt;P&gt;That itself might&amp;nbsp; not solve your problem if you wish to rerun a transformation&lt;SPAN&gt; interactively in DI Studio. Disconnecting from your workspace server or de-assigning the libref would remove the work table though.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;What you really want is a way to specify something corresponding to&lt;/P&gt;
&lt;P&gt;CREATE OR REPLACE&lt;/P&gt;
&lt;P&gt;in Snowflake. Not sure how to do that without having to resort to user written code...&lt;/P&gt;
&lt;P&gt;There's a REPLACE= data set option, but I don't think works for anything other than permanent SAS datasets.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-Worktables-Automatically-when-Loading-from-SAS-DI/m-p/898283#M355040</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-10-16T14:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Worktables Automatically when Loading from SAS DI Studio to Snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-Worktables-Automatically-when-Loading-from-SAS-DI/m-p/898825#M355257</link>
      <description>I'd like to thank you for pointing out the DBMSTEMP= option, which was indeed helpful for managing the Work Tables. However, I'm still in search of an optimal solution for handling permanent tables in Snowflake. I'm looking for a way to execute the job multiple times without encountering the error that the table already exists. If anyone has any suggestions or ideas on how to achieve this, I'd greatly appreciate further insights.</description>
      <pubDate>Mon, 16 Oct 2023 16:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-Worktables-Automatically-when-Loading-from-SAS-DI/m-p/898825#M355257</guid>
      <dc:creator>jozumhannes</dc:creator>
      <dc:date>2023-10-16T16:02:47Z</dc:date>
    </item>
  </channel>
</rss>

