<?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 SAS Viya Container Image - Write data to PostgreSQL DB Failure! in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Container-Image-Write-data-to-PostgreSQL-DB-Failure/m-p/697045#M20628</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have successfully deployed SAS Viya container image using Docker. I have issues when I am trying to write data to PostgreSQL DB. Please find below code and the error I am facing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any pointers to resolve this will help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname pgtest odbc noprompt="Driver=/opt/sas/viya/home/lib64/psqlodbcw.so;Database=sastest;UID=sasadmin;PWD=test123;Server=xx.xx.xx.xx";

data pgtest.testdata;
set sashelp.cars;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          %studio_hide_wrapper;
82         libname pgtest odbc
82       ! noprompt=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
82       ! ;
NOTE: Libref PGTEST was successfully assigned as follows: 
      Engine:        ODBC 
      Physical Name: 
83         
84         data pgtest.testdata;
85         set sashelp.cars;
86         run;
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
 
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [DATASTEP]
Segmentation Violation
 
Traceback of the Exception:
 
 
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [DATASTEP]
Segmentation Violation
 
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set PGTEST.TESTDATA may be incomplete.  When this step was stopped there were 0 observations and 15 variables.
 
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [DATASTEP]
Segmentation Violation
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Nov 2020 04:49:28 GMT</pubDate>
    <dc:creator>AnandVyas</dc:creator>
    <dc:date>2020-11-06T04:49:28Z</dc:date>
    <item>
      <title>SAS Viya Container Image - Write data to PostgreSQL DB Failure!</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Container-Image-Write-data-to-PostgreSQL-DB-Failure/m-p/697045#M20628</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have successfully deployed SAS Viya container image using Docker. I have issues when I am trying to write data to PostgreSQL DB. Please find below code and the error I am facing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any pointers to resolve this will help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname pgtest odbc noprompt="Driver=/opt/sas/viya/home/lib64/psqlodbcw.so;Database=sastest;UID=sasadmin;PWD=test123;Server=xx.xx.xx.xx";

data pgtest.testdata;
set sashelp.cars;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1          %studio_hide_wrapper;
82         libname pgtest odbc
82       ! noprompt=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
82       ! ;
NOTE: Libref PGTEST was successfully assigned as follows: 
      Engine:        ODBC 
      Physical Name: 
83         
84         data pgtest.testdata;
85         set sashelp.cars;
86         run;
NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
 
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [DATASTEP]
Segmentation Violation
 
Traceback of the Exception:
 
 
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [DATASTEP]
Segmentation Violation
 
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set PGTEST.TESTDATA may be incomplete.  When this step was stopped there were 0 observations and 15 variables.
 
ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
 
The SAS task name is [DATASTEP]
Segmentation Violation
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2020 04:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Container-Image-Write-data-to-PostgreSQL-DB-Failure/m-p/697045#M20628</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-11-06T04:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya Container Image - Write data to PostgreSQL DB Failure!</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Container-Image-Write-data-to-PostgreSQL-DB-Failure/m-p/700963#M20779</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;did you have the chance to look at the psql logs? I this the Viya psql database or it is an external one?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would check also at your odbc driver logs, previous expanding the level of information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Juan&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 16:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Container-Image-Write-data-to-PostgreSQL-DB-Failure/m-p/700963#M20779</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2020-11-23T16:27:21Z</dc:date>
    </item>
  </channel>
</rss>

