I am working on the UPS Export File which may not have any
carriage returns or other such characters. There is an right
arrow at the end of the export file which their upload will not
allow. What is this character? and… is there a way to suppress
it using AREV's export module? TIA, Jim
The right arrow is ASCII(26), the DOS end-of-file character I believe. I'm afraid I can't suggest a way to get rid of it using Export.
Thanks Bill. We were able to get rid of it by xlate the dos
string to a variable, obtaining the length and stripping one digit,
then writing the string back to the dos file. Works perfectly.
Jim
Hopefully your files will never grow more than 64K then.
Don,
Assuming the file IS larger than 64K, is there a simple way from within Arev to obtain the true size of the file in bytes so that you can OSOPEN, OSBREAD the last 100 bytes of the file, and then OSBWRITE back all but the last one CHAR(26)?
Bill,
Yes, pretty much just the way you described it.
Well the Char(26) should only be there if you have specified char(26) as the end of file character - so removing this definition from the export should work!
As for getting the end character - use the DIR command to get the exact length e.g.
Length=Dir('f:\arev3_1\datavol\export.txt')
(Fields 2 and 3 give you date and time).
World Leaders in all things RevSoft