I would like to ask you if there is a command ( a loop ?) to duplicate (with contents) an oracle database and put all created tables with same name in a library.
Do you want the clone in oracle or datasets in the file-system? If you want to store the clone in oracle, use tools provided by oracle. If you want datasets, use proc copy.
the other question is how to save into a server and not local machine ( EG is installed in a local machine and database and the output should be on a server ) ?
Is SAS running on your local machine or on a server?