<?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: Issues with SAS VIYA caslib to Amazon Redshift - in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Issues-with-SAS-VIYA-caslib-to-Amazon-Redshift/m-p/987447#M3085</link>
    <description>&lt;P&gt;Does the Redshift connection work OK in a DATA step or PROC SQL query? If not then I would suspect the problem is with the Redshift connection. If yes then I would suspect there is an issue on the CAS side.&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2026 20:14:27 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2026-05-06T20:14:27Z</dc:date>
    <item>
      <title>Issues with SAS VIYA caslib to Amazon Redshift -</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Issues-with-SAS-VIYA-caslib-to-Amazon-Redshift/m-p/987398#M3077</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS VIYA: LTS 2025.03&lt;/P&gt;
&lt;P&gt;System: Openshift&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create and use a caslib to Amazon Redshift.&lt;/P&gt;
&lt;P&gt;The code used to create the caslib is below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
table.addCaslib / name='rslib9'
		description='Amazon Redshift CASLIB'
        session=FALSE
        datasource={
            srctype='redshift',
			server='server_name',
			database='ttt',
			uid='user'
			pwd='password'			
		};
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none; border-width: 0px; left: -1000px; line-height: 1.25; margin: 0px; padding: 0px; text-rendering: optimizespeed; top: 0px; background-color: #ffffff; color: #2a3037; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; position: fixed;"&gt;NOTE: Active Session now CASAUTO.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: 'rslib9' is now the active caslib.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: Cloud Analytic Services added the caslib 'rslib9'.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: The PROCEDURE CAS printed page 1.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: PROCEDURE CAS used (Total process time):&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;      real time           0.13 seconds&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;      cpu time            0.06 seconds&lt;/PRE&gt;
&lt;PRE style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none; border-width: 0px; left: -1000px; line-height: 1.25; margin: 0px; padding: 0px; text-rendering: optimizespeed; top: 0px; background-color: #ffffff; color: #2a3037; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; position: fixed;"&gt;NOTE: Active Session now CASAUTO.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: 'rslib9' is now the active caslib.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: Cloud Analytic Services added the caslib 'rslib9'.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: The PROCEDURE CAS printed page 1.&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;NOTE: PROCEDURE CAS used (Total process time):&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;      real time           0.13 seconds&lt;BR style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none;" /&gt;      cpu time            0.06 seconds&lt;/PRE&gt;
&lt;P&gt;NOTE: Active Session now CASAUTO.&lt;BR /&gt;NOTE: 'rslib9' is now the active caslib.&lt;BR /&gt;NOTE: Cloud Analytic Services added the caslib 'rslib9'.&lt;BR /&gt;NOTE: The PROCEDURE CAS printed page 1.&lt;BR /&gt;NOTE: PROCEDURE CAS used (Total process time):&lt;BR /&gt;real time 0.13 seconds&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to use with the code below I have the following error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fedsql sessref=casauto;
create table casuser.test as
   select * 
   from connection to rslib9
   (
      select * 
      from from schema.t1
      limit 5
   );
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT size="2"&gt;/* ERROR: The connection to the data source driver failed. */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* ERROR: ERROR: [SAS][ODBC Redshift Wire Protocol driver][Redshift]FATAL: no pg_hba.conf entry for host "???", user "belgium_user", */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* database "tpd", SSL off(File */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* /opt/brazil-pkg-cache/packages/RedshiftPADB/RedshiftPADB-1.0.180974.0/AL2_aarch64/generic-flavor/src/src/pg/src/backend/libpq */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* /auth.c; Line 694; Routine ClientAuthentication; ) */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* ERROR: The action stopped due to errors. */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* ERROR: The FedSQL action was not successful. */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Any thoughts why is not working?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;smm662002&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 13:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Issues-with-SAS-VIYA-caslib-to-Amazon-Redshift/m-p/987398#M3077</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2026-05-06T13:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with SAS VIYA caslib to Amazon Redshift -</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Issues-with-SAS-VIYA-caslib-to-Amazon-Redshift/m-p/987447#M3085</link>
      <description>&lt;P&gt;Does the Redshift connection work OK in a DATA step or PROC SQL query? If not then I would suspect the problem is with the Redshift connection. If yes then I would suspect there is an issue on the CAS side.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 20:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Issues-with-SAS-VIYA-caslib-to-Amazon-Redshift/m-p/987447#M3085</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2026-05-06T20:14:27Z</dc:date>
    </item>
  </channel>
</rss>

