<?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 Code to copy subfolders and files of  SAS Contents Folder in SAS Viya in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Code-to-copy-subfolders-and-files-of-SAS-Contents-Folder-in-SAS/m-p/726621#M849</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to copy all subfolders and files of one folder of SAS Contents to another folder in SAS Viya. For example for the given below SAS Contents folder paths :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename myfldr filesrvc folderpath='/User/Folder1/Location1'&lt;/P&gt;&lt;P&gt;filename cpfldr filesrvc folderpath='/User/Folder1/Location2'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to copy all subfolders and files from fileref "myfldr" to "cpfldr".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used fcopy to copy the files but it is working only when a file is present at destination. I want to write a code that will copy all subfolders and files irrespective of whether the subfolders and files are present at the destination location or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 05:28:18 GMT</pubDate>
    <dc:creator>Priyanka109</dc:creator>
    <dc:date>2021-03-16T05:28:18Z</dc:date>
    <item>
      <title>Code to copy subfolders and files of  SAS Contents Folder in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Code-to-copy-subfolders-and-files-of-SAS-Contents-Folder-in-SAS/m-p/726621#M849</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to copy all subfolders and files of one folder of SAS Contents to another folder in SAS Viya. For example for the given below SAS Contents folder paths :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename myfldr filesrvc folderpath='/User/Folder1/Location1'&lt;/P&gt;&lt;P&gt;filename cpfldr filesrvc folderpath='/User/Folder1/Location2'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to copy all subfolders and files from fileref "myfldr" to "cpfldr".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used fcopy to copy the files but it is working only when a file is present at destination. I want to write a code that will copy all subfolders and files irrespective of whether the subfolders and files are present at the destination location or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 05:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Code-to-copy-subfolders-and-files-of-SAS-Contents-Folder-in-SAS/m-p/726621#M849</guid>
      <dc:creator>Priyanka109</dc:creator>
      <dc:date>2021-03-16T05:28:18Z</dc:date>
    </item>
  </channel>
</rss>

