John, Thanks for your reply. I have the script writing to a file and formating OK but, I'm not to sure about the formating you always see at the top of the txt file from the database. "\ t YTDPURCH The biggest problem right now is getting the database guy to send me a mock-up file. Do you or anybody know what all this crap is? I can see that it obviously names the fields but, how will all this affect my script. Thanks, Clint >If all you need is a tab-delimited text file (like Excel would produce if >you save a spreadsheet as text), then it's easy. In fact it's easy even if >you need a lot more stuff. The only slightly tricky part is setting the >directory for the file to appear in, but if it's just in the directory >where the Perl script is running, it's almost a no-brainer. (And you know >how "no-brainers" always turn out of course :) >Send me a few more details and I'll send you some code.