Last Line in CSV is Empty

make

Member
Hi there,
i create a CSV file with the following line:

First the Def:
output stream strOut to value(cOutFile) append no-echo keep-messages CONVERT TARGET "iso8859-1".

Then the call :
export stream strOut Delimiter ";" Xaufpos.kdnr String(Xaufpos.vanr) String(Xaufpos.aarnr) string(Xaufpos.posnr) ~
string(Xaufpos.pposnr) string(xaufpos.wdat,'9999-99-99') Xaufpos.komm Xaufpos.bem Xaufpos.glasbez string(Xaufpos.durchm) Xaufpos.richtg ~
string(Xaufpos.Spha) string(Xaufpos.tor) string(Xaufpos.achse) string(Xaufpos.addition) ~
string(Basiskurve) String(Basislage) string(Xaufpos.farbe) string(Xaufpos.fproz) string(Xaufpos.ets) Xaufpos.sondfert xaufpos.posstat string(xaphist.Datum,'9999-99-99') ~
xaphist.Zeit xaufpos.herkunft string(xaufpos.anldat,'9999-99-99').

It works good, but my problem is, i have always an empty last line in the CSV.
Is there a way ?

Make
 

Crittar

Member
Make,

If the EXPORT is within a REPEAT loop try putting the TRANSACTION keyword on it:

Code:
REPEAT TRANSACTION:

   EXPORT ...

END.
 
Top