<?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 Green Plum Server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Green-Plum-Server/m-p/398112#M96251</link>
    <description>&lt;P&gt;I was wondering the best practice for moving data between Green Plum and unix base sas files on an integrated SAS grid environment. I have seen users use pg_dump or a copy to (format CSV) and then proc imported as SAS files. I have also seen the use of the odbc connection. I was looking for any feedback or if there were alternative methods to best optimize the use of the SAS Grid. Currently I am running small summarized files though ODBC Parallel processed like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(grdsvc_enable(_all_,server=SASApp_Grid));&lt;BR /&gt;options autosignon;&lt;/P&gt;&lt;P&gt;rsubmit task1 wait=no;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*functions processed*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;endrsubmit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*example of odbc connect*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to odbc(dsn = ***&amp;nbsp;user=ME pwd="&amp;amp;dbpass");&lt;/P&gt;&lt;P&gt;insert into /*SAS premade table name*/_&lt;SPAN&gt;&amp;amp;snapdate.&lt;/SPAN&gt;&lt;BR /&gt;select * from connection to odbc(&lt;/P&gt;&lt;P&gt;select&amp;nbsp;*&lt;BR /&gt;From /*Green Plum Table*/&lt;BR /&gt;where date = %unquote(%str(%'&amp;amp;snapdate.%'))::date + interval '1 month' - interval '1 day'&lt;BR /&gt;;);&lt;BR /&gt;disconnect from odbc;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then stack the tables and drop the monthly tables after moving the files (I am pulling by how the tables are partitioned on Green Plum). Should I continue this approach? Appreciate any help or feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Larri&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 14:23:50 GMT</pubDate>
    <dc:creator>Larrihoover</dc:creator>
    <dc:date>2017-09-22T14:23:50Z</dc:date>
    <item>
      <title>Green Plum Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Green-Plum-Server/m-p/398112#M96251</link>
      <description>&lt;P&gt;I was wondering the best practice for moving data between Green Plum and unix base sas files on an integrated SAS grid environment. I have seen users use pg_dump or a copy to (format CSV) and then proc imported as SAS files. I have also seen the use of the odbc connection. I was looking for any feedback or if there were alternative methods to best optimize the use of the SAS Grid. Currently I am running small summarized files though ODBC Parallel processed like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(grdsvc_enable(_all_,server=SASApp_Grid));&lt;BR /&gt;options autosignon;&lt;/P&gt;&lt;P&gt;rsubmit task1 wait=no;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*functions processed*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;endrsubmit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*example of odbc connect*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to odbc(dsn = ***&amp;nbsp;user=ME pwd="&amp;amp;dbpass");&lt;/P&gt;&lt;P&gt;insert into /*SAS premade table name*/_&lt;SPAN&gt;&amp;amp;snapdate.&lt;/SPAN&gt;&lt;BR /&gt;select * from connection to odbc(&lt;/P&gt;&lt;P&gt;select&amp;nbsp;*&lt;BR /&gt;From /*Green Plum Table*/&lt;BR /&gt;where date = %unquote(%str(%'&amp;amp;snapdate.%'))::date + interval '1 month' - interval '1 day'&lt;BR /&gt;;);&lt;BR /&gt;disconnect from odbc;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then stack the tables and drop the monthly tables after moving the files (I am pulling by how the tables are partitioned on Green Plum). Should I continue this approach? Appreciate any help or feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Larri&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 14:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Green-Plum-Server/m-p/398112#M96251</guid>
      <dc:creator>Larrihoover</dc:creator>
      <dc:date>2017-09-22T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Green Plum Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Green-Plum-Server/m-p/399961#M96903</link>
      <description>&lt;P&gt;If your current process works well why change it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IMO SAS to database data transfers using SAS/ACCESS products are better than using intermediate text files because of the reliable data type translation of interfaces like ODBC. There is a lot less to go wrong with this approach.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2017 01:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Green-Plum-Server/m-p/399961#M96903</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-30T01:30:02Z</dc:date>
    </item>
  </channel>
</rss>

