BookmarkSubscribeRSS Feed
Priyanka109
Calcite | Level 5

Hello,

 

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 :

 

filename myfldr filesrvc folderpath='/User/Folder1/Location1'

filename cpfldr filesrvc folderpath='/User/Folder1/Location2'

 

I want to copy all subfolders and files from fileref "myfldr" to "cpfldr".

 

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.

 

Please help.

 

Thanks

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Discussion stats
  • 0 replies
  • 882 views
  • 0 likes
  • 1 in conversation