Ok, so the reason why the output file looked weird was because the record length was too short. I have one very long variable ($800.) so I had to set the record length to 800 as well. Data _null_, would you argue that Arthur's modifications are not necessary? I ran your code and it works well. Also, no blank lines, just the one that Notepad creates automatically when opening the file. I still don't fully understand the code (vnext, link names, ...), which is on of the reasons I always revert back to simple procedures like proc export or just using ODS CVS, but I'm going to try to research these statements and figure out why they are being used. Thanks for everyone's input. Regards Phil
... View more