G'day Damon,
Is it possible to create the output in a report and send that to a text file? There is an article in FTE on how to do this. Regards Clive From: [email protected] [mailto:[email protected]] On Behalf Of Gray, Damon Sent: Thursday, 26 February 2009 08:16 To: RBASE-L Mailing List Subject: [RBASE-L] - Stripping "blanks" off the end of file lines Greetings all. I'm working an issue in which our W2 files are being rejected by the U.S. government because the "records" are not 512 bytes long. After burning a couple of hours on investigative techniques I won't bore you with or embarrass myself with, I'll tell you that indeed the records are NOT 512 bytes, but are 500 bytes. The last 12 bytes of each line (required by the specification) are being stripped off at some point when before the file is written to the disc. I start with this routine: SET VAR vBLANK = (CHAR(32)) CLEAR VAR vRECORD SET VAR vRECORD TEXT SET VAR vRECORD = (SFIL(.vBLANK,512)) And then use SPUT to place the various data items in their required position. The last piece written is a "P" at position 500. Positions 501 - 512 should be blanks, as created by the SFIL above, but instead are being stripped off. Any idea why? wwwww ( @ @ ) -------oOO---(_)---OOo------- Damon J. Gray Anvil Corporation Business Services (360) 937-0770 oooo0 0oooo ( ) ( ) ----------\ (----) /----------- \__) (__/ __________ Information from ESET Smart Security, version of virus signature database 3887 (20090224) __________ The message was checked by ESET Smart Security. http://www.eset.com

