<?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: SAS Migration in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534334#M146615</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12887"&gt;@ErikLund_Jensen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably should also add&amp;nbsp;&lt;SPAN&gt;CONSTRAINT=YES to not drop such constraints when creating the target datasets.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Feb 2019 21:14:09 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-02-10T21:14:09Z</dc:date>
    <item>
      <title>SAS Migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534294#M146605</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are migrating SAS applications running on AIX to Linux. As a part of this , we are using PROC CPORT and CIMPORT to migrate the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, we have sas datasets in multiple folders (close to 10000) including all the sub folders in the AIX file system. Each individual folder is considered as one sas library. With this etup, we have to run PROC CPORT / CIMPORT 10000 times. Are there any other options this can be done easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can rsync be used to transfer the sas datasets between two different operating systems?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Vijay.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 14:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534294#M146605</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2019-02-10T14:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534304#M146611</link>
      <description>&lt;P&gt;Proc migrate has many advantages over CPORT/CIMPORT. You can convert the entire library at one go instead of converting each dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/rnd/migration/procmigrate/index.html" target="_blank"&gt;https://support.sas.com/rnd/migration/procmigrate/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rsync is a great utility to copy over huge volumes of data between the environments and is commonly used. Due to some of the differences between AIX and Linux environments like session encoding and differences in the type of processor you might encounter session encoding errors while performing some operations on the sas datsets prior to doing the proc migrate.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 16:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534304#M146611</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-02-10T16:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534317#M146613</link>
      <description>&lt;P&gt;Hi vijayanand&lt;/P&gt;
&lt;P&gt;We did a similar migration from Windows to Linux recently. First 2 questions:&lt;/P&gt;
&lt;P&gt;Do your computers share the same network, so you can mount the AIX file system or parts of it on Linux?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you create a SAS dataset with mapping between the data structures - full AIX path to corresponding Linux path?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes to both, I guess you can do the whole operation om Linux with something like the following macro. You could always refine it with error handling and some progress logging. It worked from Windows to Linux, so I guess it would work from AIX as well. But run it in batch and not from Display Manager or otheer clients.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro copydir;
	%do i = 1 to &amp;amp;dircnt; /* number of directories, set in earlier step */

		/* loop to copy directories */
		data _null_; set work.dirmap(firstobs=&amp;amp;i obs=&amp;amp;i); /* dataset with directory mapping from earlier step */
			call symput('sourcedir',sourcedir);
			call symput('targetdir',targetdir);
		run;

		LIBNAME source "&amp;amp;sourcedir";
		LIBNAME target "&amp;amp;targetdir";

		proc copy in=source out=target NOCLONE DATECOPY;
		run;

		LIBNAME source clear;
		LIBNAME target clear;
	%end;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Feb 2019 18:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534317#M146613</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-02-10T18:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534334#M146615</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12887"&gt;@ErikLund_Jensen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably should also add&amp;nbsp;&lt;SPAN&gt;CONSTRAINT=YES to not drop such constraints when creating the target datasets.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 21:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534334#M146615</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-10T21:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Migration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534416#M146642</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definitely a good idea, thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 10:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Migration/m-p/534416#M146642</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-02-11T10:26:28Z</dc:date>
    </item>
  </channel>
</rss>

