Skip to Content
0
Mar 10, 2009 at 04:07 PM

Dataset writing in .dat (multiple lines)

179 Views

Hi,

I write in .dat file with my dataset.

The problem is : I can't make a new line for each transfer.

Have someone an idea ?

My code :

OPEN DATASET filename_ventes FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

select  *
from    CE13910
where   PERIO = '2008002'
and     ALTPERIO = '2008006'.

MOVE CE13910-VV800 TO c_converted2.
MOVE CE13910-VV000 TO c_converted3.

  CONCATENATE CE13910-PERIO CE13910-ALTPERIO CE13910-ARTNR 
CE13910-PAPH2 CE13910-PAPH3 c_converted2 c_converted3
  INTO resultString SEPARATED BY separatedString .

  transfer resultString to filename_ventes.

ENDSELECT.

CLOSE DATASET filename_ventes.

Thanks for your help.

Nico