Hizzah, a question I can answer! All joking aside, I hope this is correct. I would bet my salary that you are experiencing issues because some of the fields that you're trying to export have CRLF (carriage return life feed) values within the comments. Sas doesn't know how to handle these in comment fields, so if the field also has a comma sas splits it out into new values, and then creates a blank row, exactly what you are seeing. If you can, try to remove the crlf values from your variables before you export it out, and everything should work out fine. something like this will work. newfield=TRANSLATE(oldfield,'','0D0A'x); You can put this into your loop pretty easily, and then try exporting the datafile. If this doesn't work, please ignore the "bet my salary" portion of my response.. If it does, then glad to be of assistance! Brandon
... View more