* this example shows how you can call the operating system (in this * example UNIX) to execute a command during your SAS program.
DATA test; do a = 1 to 100; output; end; run;
data _null_; set test; file "test.txt"; put a; run;
x "rm test2.txt"; x "head ~/test.txt > test2.txt" ;
data test2; infile "test2.txt"; input a; run;
proc print data=test2; run;