Thank you for your reply RW9. Actually, I'm getting the Variable Names in quotes using my earlier code so the issue is only with values. Also when i run the code you've provided i'm getting this error: 112 data _null_; 113 set RSF_Data3; 114 file 'H:\reports\test2.txt'; 115 if _n_ = 1 then put 115! '"Account_number","Name","date_deceased","balance_amt_dod","City","St","Zip"'; 116 put catx("," , --- 22 76 116! quote(Account_number),quote(Name),quote(date_deceased),quote(balance_amt_dod),quote(City), 116! quote(ST),quote(Zip)); ERROR 22-322: Syntax error, expecting one of the following: a name, arrayname, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_. ERROR 76-322: Syntax error, statement will be ignored. 117 run; NOTE: The SAS System stopped processing this step because of errors. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds Another thing is that my data has missing values, so i'm not sure if catx would be the right function in this case. Please suggest.
... View more