in reply to Empty a text file?

Yes. Try
open FILE, ">file.dat"; close FILE
I admit it's not a *lot* more elegant, but what do you expect?
sas