<?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: Copy from one Enviroment to other environment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-from-one-Enviroment-to-other-environment/m-p/349908#M81281</link>
    <description>&lt;P&gt;It seems&amp;nbsp;to me that you have your data in a SQL Server database and want to replicate that.&amp;nbsp;I'm not any sort of SQL Server expert but to be honest I think you're better off using a native tool for that rather than using SAS to copy the data over. The likelihood is that you'll have issues with data type conversion and precision if you try to do it with SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might find the Microsoft Developer Network Pages helpful particularly&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/hh272696(v=vs.103).aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/hh272696(v=vs.103).aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 23:44:25 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2017-04-13T23:44:25Z</dc:date>
    <item>
      <title>Copy from one Enviroment to other environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-from-one-Enviroment-to-other-environment/m-p/349514#M81068</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have any idea where to start .Here is the situation, I have three different environemnt(development,Testing and Production).&lt;/P&gt;&lt;P&gt;How do I copy the data from developement to production and testing to production.moreover i want to compare the data are the same in all environments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first i have to copy the data from development&amp;nbsp; database 2016 &amp;nbsp;into developement database 2017.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro Env(&lt;FONT color="#800080" face="Courier New" size="2"&gt;server);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc sql stimer;&lt;/P&gt;&lt;P&gt;connect to oledb as&amp;nbsp;test2016 (provider = sqloledb&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;datasource = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;server"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;user = "User Id"&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;password = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"password"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;properties = (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'INITIAL CATALOG'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=database2016)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;dbmax_text = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;30000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;connect to oledb as&amp;nbsp;test2017 (provider = sqloledb&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;datasource = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;server"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;user = "User Id"&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;password = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"password"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;properties = (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'INITIAL CATALOG'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=database2017)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;dbmax_text = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;30000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="2"&gt;select * from connection to test2016&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(copy developemnt data to testing data&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;disconnect from &lt;FONT size="2"&gt;test2016&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;disconnect from &lt;FONT size="2"&gt;test2017&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc compare base=development compare=testing;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ENV;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;%ENV(Development);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;%ENV(Testing);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;%ENV(Production);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-from-one-Enviroment-to-other-environment/m-p/349514#M81068</guid>
      <dc:creator>tekish</dc:creator>
      <dc:date>2017-04-12T16:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy from one Enviroment to other environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-from-one-Enviroment-to-other-environment/m-p/349908#M81281</link>
      <description>&lt;P&gt;It seems&amp;nbsp;to me that you have your data in a SQL Server database and want to replicate that.&amp;nbsp;I'm not any sort of SQL Server expert but to be honest I think you're better off using a native tool for that rather than using SAS to copy the data over. The likelihood is that you'll have issues with data type conversion and precision if you try to do it with SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might find the Microsoft Developer Network Pages helpful particularly&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/hh272696(v=vs.103).aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/hh272696(v=vs.103).aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 23:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-from-one-Enviroment-to-other-environment/m-p/349908#M81281</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-04-13T23:44:25Z</dc:date>
    </item>
  </channel>
</rss>

