<?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: how to copy multiples spde files on a unix server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-multiples-spde-files-on-a-unix-server/m-p/713364#M38005</link>
    <description>&lt;P&gt;SPDE files has the absolute path in the meta data header file, so it's adviced not to use OS command to copy/move these files.&lt;/P&gt;
&lt;P&gt;Not sure why you can't use a SAS program to do this, or why you should creata a ksh using SAS... (perhaps by sing SAS disctionary tables to generete code dynamically?)&lt;/P&gt;
&lt;P&gt;You can have a ksh calling SAS and the SAS copy program.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 14:49:40 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2021-01-22T14:49:40Z</dc:date>
    <item>
      <title>how to copy multiples spde files on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-multiples-spde-files-on-a-unix-server/m-p/713363#M38004</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the sas documentation (&lt;A href="https://documentation.sas.com/api/docsets/engspde/9.4/content/engspde.pdf?locale=en" target="_blank"&gt;https://documentation.sas.com/api/docsets/engspde/9.4/content/engspde.pdf?locale=en&lt;/A&gt;), it is recommended to copy a spde file from source to destination using the command similar to the one below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname source spde 'source_path';&lt;/P&gt;
&lt;P&gt;libname dest spde 'destination_path';&lt;BR /&gt;proc copy in=source out=dest;&lt;BR /&gt;select Fname;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the task a need to do it to generate a ksh file, using a SAS program to generate this ksh file, then that will be executed on a unix server ex: KshScript_1.Ksh&lt;/P&gt;
&lt;P&gt;This file contains instructions such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mkdir path2&lt;/P&gt;
&lt;P&gt;cp&amp;nbsp; path1/file_1&amp;nbsp; path2/file_1&lt;/P&gt;
&lt;P&gt;cp&amp;nbsp; path1/file_2&amp;nbsp; path2/file_2&lt;/P&gt;
&lt;P&gt;cp&amp;nbsp; path1/file_3&amp;nbsp; path2/file_3&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;cp&amp;nbsp; path1/file_n&amp;nbsp; path2/file_n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But which instruction could I use for a spde file?&lt;/P&gt;
&lt;P&gt;What's the best way to take care of the spde files, I mean to copy them from source to destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 14:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-multiples-spde-files-on-a-unix-server/m-p/713363#M38004</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-01-22T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy multiples spde files on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-multiples-spde-files-on-a-unix-server/m-p/713364#M38005</link>
      <description>&lt;P&gt;SPDE files has the absolute path in the meta data header file, so it's adviced not to use OS command to copy/move these files.&lt;/P&gt;
&lt;P&gt;Not sure why you can't use a SAS program to do this, or why you should creata a ksh using SAS... (perhaps by sing SAS disctionary tables to generete code dynamically?)&lt;/P&gt;
&lt;P&gt;You can have a ksh calling SAS and the SAS copy program.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 14:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-multiples-spde-files-on-a-unix-server/m-p/713364#M38005</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-01-22T14:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy multiples spde files on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-multiples-spde-files-on-a-unix-server/m-p/714302#M38015</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand your question and the answer is simple.&lt;/P&gt;
&lt;P&gt;We don't have access to the production server for security purpose.&lt;/P&gt;
&lt;P&gt;So we need to provide to the admin, a ksh file that will gather all together, instructions such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mdir -m777 /rootdir1&lt;/P&gt;
&lt;P&gt;mdir -m777 /rootdir1/path1&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;cp rootdir/path1/file1&amp;nbsp; &amp;nbsp;/rootdir1/path1/file1&lt;/P&gt;
&lt;P&gt;cp rootdir/path1/file2&amp;nbsp; &amp;nbsp;/rootdir1/path1/file2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname source spde '&amp;amp;rootdir/path1'; libname dest spde '&amp;amp;rootdir1/path1'; proc copy in=source out dest; select file1;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my task is to put all those instructions into the same file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do that?&lt;/P&gt;
&lt;P&gt;Please note that as we have unix and sas commands in the same file.&lt;/P&gt;
&lt;P&gt;What's the best way to do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 16:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-multiples-spde-files-on-a-unix-server/m-p/714302#M38015</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-01-26T16:11:56Z</dc:date>
    </item>
  </channel>
</rss>

