Copies a file on the remote SAS server. Is analogous to
file.copy()
, but for the remote SAS server.
See also
Other file management functions:
sas_file_download()
,
sas_file_exists()
,
sas_file_remove()
,
sas_file_upload()
,
sas_list()
Examples
if (FALSE) { # \dontrun{
# connect to SAS
sas_connect()
# create a file and upload it to SAS
cat("PROC MEANS DATA = sashelp.cars;RUN;", file = "script.sas")
sas_file_upload(local_path = "script.sas", sas_path = "~/script.sas")
# copy file on SAS
sas_file_copy("~/script.sas", "~/script_copy.sas")
} # }