<?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: Error when uploading SAS table from local server to Redshift in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/940676#M369198</link>
    <description>&lt;P&gt;On the evidence you've posted it appears there is some data in row 32,750 of your SAS dataset that is causing a Redshift CLI error. I suggest you try loading just 32,749 rows from SAS and see if that works without errors:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data rf.rsv_standing_cohort;
set epi.rsv_standing_cohort (obs = 32749);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it does, then try this test to see if it fails on the first row:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data rf.rsv_standing_cohort;
set epi.rsv_standing_cohort (firstobs = 32750);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it does, then I suggest you examine the data in row 32,750 to see if you can spot what might be causing the error. Foreign language character might be one possibility.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2024 23:19:20 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2024-08-23T23:19:20Z</dc:date>
    <item>
      <title>Error when uploading SAS table from local server to Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/940638#M369187</link>
      <description>&lt;P&gt;I’m trying to upload a SAS table to Redshift using the following simple command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data rf.rsv_standing_cohort;
set epi.rsv_standing_cohort;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where the “epi” library is on my local server and the “rf” library refers to my Redshift schema.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I’m getting the following error – part of my table is not being uploaded (original table size is 35,392 records).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas why the table upload is incomplete?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
ERROR: CLI execute error: [SAS][ODBC Redshift Wire Protocol driver]This is either an Unknown Type or is not supported currently.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 32750 observations read from the data set EPI.RSV_STANDING_COHORT.
WARNING: The data set RF.RSV_STANDING_COHORT may be incomplete.&amp;nbsp; When this step was stopped there were 32749 observations and 9&amp;nbsp;variables.
ERROR: ROLLBACK issued due to errors for data set RF.RSV_STANDING_COHORT.DATA.
NOTE: DATA statement used (Total process time):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1:35.32
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 15:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/940638#M369187</guid>
      <dc:creator>RobertWF1</dc:creator>
      <dc:date>2024-08-23T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading SAS table from local server to Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/940676#M369198</link>
      <description>&lt;P&gt;On the evidence you've posted it appears there is some data in row 32,750 of your SAS dataset that is causing a Redshift CLI error. I suggest you try loading just 32,749 rows from SAS and see if that works without errors:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data rf.rsv_standing_cohort;
set epi.rsv_standing_cohort (obs = 32749);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it does, then try this test to see if it fails on the first row:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data rf.rsv_standing_cohort;
set epi.rsv_standing_cohort (firstobs = 32750);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it does, then I suggest you examine the data in row 32,750 to see if you can spot what might be causing the error. Foreign language character might be one possibility.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 23:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/940676#M369198</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-08-23T23:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading SAS table from local server to Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/972620#M377540</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408179"&gt;@RobertWF1&lt;/a&gt;&amp;nbsp; - I'm curious if you managed to resolve this issue?&amp;nbsp; I am having the exact same thing happen - stopping at record number 32,499, in this case.&amp;nbsp; I have tried specifying the data type for each variable using the DBTYPE=() data statement option, but same thing.&amp;nbsp; It also doesn't matter if I pass a different segment of the SAS dataset (e.g. _N_&amp;gt;33,000) -- it still stops at 32,499.&amp;nbsp; &amp;nbsp;I have looked at the records around that number and nothing seems amiss.&amp;nbsp; I assume it's a space issue on the Redshift side, but postgreSQL does not seem to have any real method of returning the amount of free space available in a given schema.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 13:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/972620#M377540</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-08-14T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading SAS table from local server to Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/972642#M377546</link>
      <description>&lt;P&gt;Are you using a DATA step as well? What's your INSERTBUFF setting if any on your Redshift connection?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 20:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/972642#M377546</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-08-14T20:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading SAS table from local server to Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/972652#M377547</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp; - thanks for your reply - yes, using DATA step for this.&amp;nbsp; I actually haven't tried adjusting the INSERTBUFF at all - good idea - will try!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 00:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-uploading-SAS-table-from-local-server-to-Redshift/m-p/972652#M377547</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-08-15T00:35:35Z</dc:date>
    </item>
  </channel>
</rss>

