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

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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