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