To write a comma-separated file in SAS, use 'FILE 'filename' dlm=',';' where dlm specifies the delimiter. Option A is incorrect (dsd is for delimiter-sensitive data, not specifying the delimiter), Option B incorrectly combines dlm and dsd, and Option D uses the non-existent 'csv' keyword.