In reply to Ethan.

Use the CREATE and APPEND statements. See the article "Writing data from a matrix to a SAS data set."