Before using a system command from SAS, make sure that it performs correctly by running it from the commandline. Once that is made sure of, run it from SAS.
If you can't get a commandline interface on the server, use this in SAS to get all system output into the SAS log:
filename oscmd pipe "command 2>&1";
data _null_;
infile oscmd;
input;
put _infile_;
run;
This can give you a clue what's going wrong.
... View more