<?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 how to copy spde file from on path1 to another path in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966611#M45948</link>
    <description>&lt;P&gt;One way to copy a dataset from let's say path1 to path2 is to use the libname and data statement as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path1= something;
%let path2=something else;
%let fname=be_auto_prmjun2024;

libname source spde  "&amp;amp;path1.";
libname dest     spde  "&amp;amp;path2";

data dest.&amp;amp;fname.;
set source.&amp;amp;fname;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if we have many files, we coud use a filelist and a call execute and repeat the above script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What will be the unix command that we could use to copy spde file containing only the string prm (stand for premium) from many subfolders to other subfolders and of course only spde file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide the good unix command&lt;/P&gt;
&lt;P&gt;Please p&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 18:08:12 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2025-05-15T18:08:12Z</dc:date>
    <item>
      <title>how to copy spde file from on path1 to another path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966611#M45948</link>
      <description>&lt;P&gt;One way to copy a dataset from let's say path1 to path2 is to use the libname and data statement as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path1= something;
%let path2=something else;
%let fname=be_auto_prmjun2024;

libname source spde  "&amp;amp;path1.";
libname dest     spde  "&amp;amp;path2";

data dest.&amp;amp;fname.;
set source.&amp;amp;fname;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if we have many files, we coud use a filelist and a call execute and repeat the above script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What will be the unix command that we could use to copy spde file containing only the string prm (stand for premium) from many subfolders to other subfolders and of course only spde file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide the good unix command&lt;/P&gt;
&lt;P&gt;Please p&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 18:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966611#M45948</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2025-05-15T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy spde file from on path1 to another path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966640#M45949</link>
      <description>&lt;P&gt;Did you try PROC COPY?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 18:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966640#M45949</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-15T18:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy spde file from on path1 to another path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966644#M45950</link>
      <description>&lt;P&gt;I have many folders such as&lt;BR /&gt;&lt;BR /&gt;sas2000&lt;/P&gt;
&lt;P&gt;sas2001&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;sas2025&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and in each sas????, I have other subfolder&lt;/P&gt;
&lt;P&gt;What I would like to do is to copy only the premium dataset containg the string _prm&lt;/P&gt;
&lt;P&gt;Is it possible to do that with proc copy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 19:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966644#M45950</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2025-05-15T19:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy spde file from on path1 to another path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966650#M45951</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have many folders such as&lt;BR /&gt;&lt;BR /&gt;sas2000&lt;/P&gt;
&lt;P&gt;sas2001&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;sas2025&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and in each sas????, I have other subfolder&lt;/P&gt;
&lt;P&gt;What I would like to do is to copy only the premium dataset containg the string _prm&lt;/P&gt;
&lt;P&gt;Is it possible to do that with proc copy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you only want to copy some of the datasets use the SELECT statement.&amp;nbsp; Let SAS worry about what files are used by which dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copy inlib=in outlib=out;
  select premium ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 22:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966650#M45951</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-15T22:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy spde file from on path1 to another path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966664#M45952</link>
      <description>&lt;P&gt;You cannot copy/move SPDE data using OS tools.&lt;/P&gt;
&lt;P&gt;This is because the directory path is coded into the table metadata.&lt;/P&gt;
&lt;P&gt;See answers above for ways of copying within SAS:&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 11:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-copy-spde-file-from-on-path1-to-another-path/m-p/966664#M45952</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-05-16T11:03:20Z</dc:date>
    </item>
  </channel>
</rss>

