In reply to R. Loch Macdonald.

In general, the simplest way is to use the DATA step to write the data to a "flat" text file such as a CSV file. People have written SAS macros that try to automate this process.