Write and UTIL file.
step 1) Read from file1 one which data like...
JOHN
LISA
MARTIN
step 2) write to file2... add COMMA to the value from file1.

Just check UTIL_FILE package whether you can append (Iam nit sure).

HTH