<?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: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86)) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672282#M202023</link>
    <description>&lt;P&gt;What happens when you create a SAS data set with say 1000 rows?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data TEST;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; set X.TAB(obs=1000);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Any messages in the log?&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jul 2020 09:20:55 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-07-25T09:20:55Z</dc:date>
    <item>
      <title>SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672088#M201921</link>
      <description>&lt;P&gt;&lt;STRONG&gt;SAS Version:&lt;/STRONG&gt; 9.4 32bit&amp;nbsp; (9.4 TS Level 1M5 | W32_7Pro platform)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODBC Redshift Driver:&lt;/STRONG&gt; Amazon Redshift (x86) | 1.04.14.1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When opening a Redshift table in the SAS Explorer, SAS looks like it's running, but ultimately freezes and I need to right click and close SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is not an issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I can query of the redshift tables just fine, pull data into a work dataset and view the info there. I can also view the columns of the redshift tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Things I've tried / configurations:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;1. Modified my SAS Connection&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x odbc dbmax_text=250 readbuff=250 noprompt= "Driver={Amazon Redshift (x86)};&lt;BR /&gt;Server=NONDESCRIPT_SERVER;  
Database=NONDESCRIPT_DB; UID=NONDESCRIPT; PWD=NONDESCRIPT_PWD; Port=5439"  schema=NONDESCRIPT_SCHEMA;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am able to connect to redshift , I can see the tables, I can right click and view the columns, but I'm unable to open the tables.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The default field lengths were $1024 - using the dbmax_text I shrunk down to 250. Did not solve the issue.&lt;/LI&gt;&lt;LI&gt;Added readbuff = 250. Did not solve the issue&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;2. Modified the ODBC Driver&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Using the Additional Options I selected "Use Declare/Fetch Caches Size: 100". The previous selection was "Retrieve Entire Result Into Memory"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;3. Changed ODBC Drivers&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Amazon Redshift (x86) - My primary but still doesn't resolve the issue.&lt;/LI&gt;&lt;LI&gt;DataDirect 8.0 Amazon Redshift Wire Protocol - doesn't resolve the issue.&lt;/LI&gt;&lt;LI&gt;PostgreSQL Unicode - doesn't resolve the issue.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 15:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672088#M201921</guid>
      <dc:creator>nondescript</dc:creator>
      <dc:date>2020-07-26T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672117#M201944</link>
      <description>&lt;P&gt;This is guess that has a chance of helping: Set options validvarname=Any;&lt;/P&gt;
&lt;P&gt;before the libname statement. If the problem stems from possible column headings with non-standard characters that SAS doesn't use, anything except letters, digits and the _ character, this may help.&lt;/P&gt;
&lt;P&gt;If so you will need to reference such columns in name litteral form, quotes around the text followed by an n to tell SAS it is a name. Example:&amp;nbsp; "Var with * in name"n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is the case I would suggest copying the data sets and then renaming variables as the literals get ugly to work with quickly. You could assign labels to the new variables with the original text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, SAS will not allow longer than 32 character variable names and this might help with that as well. Might.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 15:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672117#M201944</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-24T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672125#M201949</link>
      <description>&lt;P&gt;What do you mean by "open the table"?&amp;nbsp; Are you trying to browse the data in some interactive window? Or are you running some SAS code to use the data?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to browse the data it might well be trying to copy the whole table from Redshift into your SAS server. Depending on the size of the table that might take a long time.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 16:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672125#M201949</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-24T16:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672128#M201951</link>
      <description>I'm trying to browse the data via the SAS Explorer window.</description>
      <pubDate>Fri, 24 Jul 2020 16:16:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672128#M201951</guid>
      <dc:creator>nondescript</dc:creator>
      <dc:date>2020-07-24T16:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672140#M201955</link>
      <description>&lt;P&gt;Thanks for the response, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; - unfortunately adding &lt;CODE class=" language-sas"&gt;options validvarname=Any;&lt;/CODE&gt; didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 16:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672140#M201955</guid>
      <dc:creator>nondescript</dc:creator>
      <dc:date>2020-07-24T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672248#M201999</link>
      <description>&lt;P&gt;I assume you are using SAS installed on your PC given you say it is 32-bit. What maintenance release of SAS 9.4 are you using? Support for Amazon Redshift is fairly recent in SAS so if you are not on the latest maintenance release 9.4M6 then you should consider upgrading, along with switching to 64-bit SAS which will give you a lot more memory to use.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 00:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672248#M201999</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-25T00:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672282#M202023</link>
      <description>&lt;P&gt;What happens when you create a SAS data set with say 1000 rows?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data TEST;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; set X.TAB(obs=1000);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Any messages in the log?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 09:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672282#M202023</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-25T09:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672332#M202044</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/339039"&gt;@nondescript&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I'm trying to browse the data via the SAS Explorer window.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you are using Display Manager?&amp;nbsp; (instead of Enterprise Guide or SAS/Studio)&lt;/P&gt;
&lt;P&gt;Don't do that with large datasets.&amp;nbsp; I don't think the ViewTable tool is smart enough not to trigger moving the whole dataset from Redshift into your SAS computer.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 17:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672332#M202044</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-25T17:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672393#M202076</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to retrieve data just fine as well as view the data- in fact, it seem quite a bit faster than oracle tables I normally query off. This is good news and I will update my post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it does still freeze when trying to view the dataset sitting in Redshift.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 14:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672393#M202076</guid>
      <dc:creator>nondescript</dc:creator>
      <dc:date>2020-07-26T14:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672394#M202077</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4 TS Level 1M5&lt;/P&gt;&lt;P&gt;W32_7PRO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not too familiar with the maintenance, patches, and updates of SAS so any recommendation is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 14:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672394#M202077</guid>
      <dc:creator>nondescript</dc:creator>
      <dc:date>2020-07-26T14:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672412#M202093</link>
      <description>&lt;P&gt;9.4M5 is quite recent. I'd suggest trying this on another PC if possible just to confirm the behaviour is consistent and also raising this with SAS Tech Support.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 20:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672412#M202093</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-26T20:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Freezes when opening Redshift Table (9.4 - Amazon Redshift (x86))</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672420#M202096</link>
      <description>&lt;P&gt;One for tech support I reckon.&lt;/P&gt;
&lt;P&gt;There is no reason that redshift should behave differently than other external sources.&lt;/P&gt;
&lt;P&gt;They may have ways to look at why this is happening.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, you have a workaround, and maybe a way to see of this behaviour is nor triggered by a specific record with weird data.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 23:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Freezes-when-opening-Redshift-Table-9-4-Amazon-Redshift-x86/m-p/672420#M202096</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-26T23:03:14Z</dc:date>
    </item>
  </channel>
</rss>

