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

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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