cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

File writer manipulation

Bashar_Al_Soufi
New Contributor

I need your advice with the following, for a process, we need to generate a file in a specific format, almost csv but with some exceptions.

This is what I currently generate:

icREC12

NL63 Sc
708559;40126;09/11/2019;10/11/2019;25125;0EUR
708558;40126;09/11/2019;10/11/2019;1830;0EUR
708556;40126;09/11/2019;10/11/2019;4512.5;0EUR
708591;40126;09/18/2019;10/18/2019;17500;0EUR
708564;40126;09/17/2019;10/17/2019;3074;0EUR
600863;40126;09/30/2019;10/30/2019;-271.72;9AED
708551;40147;09/10/2019;10/10/2019;1640;0EUR
708568;40147;09/17/2019;10/17/2019;2412;0EUR

DE01 Sc
50777006;40189;09/24/2019;10/01/2019;265904;0EUR
50777332;40189;09/27/2019;10/04/2019;2057.3;0EUR
50777334;40189;09/27/2019;10/04/2019;7886.35;0EUR
50777335;40189;09/27/2019;10/04/2019;16623.67;0EUR
50777337;40189;09/27/2019;10/04/2019;8204.6;0EUR

This is what should looks like, more header lines which are static:

icREC12
;
/
mdy
.

NL63 Sc
708559;40126;09/11/2019;10/11/2019;25125;0EUR
708558;40126;09/11/2019;10/11/2019;1830;0EUR
708556;40126;09/11/2019;10/11/2019;4512.5;0EUR
708591;40126;09/18/2019;10/18/2019;17500;0EUR
708564;40126;09/17/2019;10/17/2019;3074;0EUR
600863;40126;09/30/2019;10/30/2019;-271.72;9AED
708551;40147;09/10/2019;10/10/2019;1640;0EUR
708568;40147;09/17/2019;10/17/2019;2412;0EUR

DE01 Sc
50777006;40189;09/24/2019;10/01/2019;265904;0EUR
50777332;40189;09/27/2019;10/04/2019;2057.3;0EUR
50777334;40189;09/27/2019;10/04/2019;7886.35;0EUR
50777335;40189;09/27/2019;10/04/2019;16623.67;0EUR
50777337;40189;09/27/2019;10/04/2019;8204.6;0EUR

image

I am able to group the data and add the splitsing between:

image.png

But I am able to add only one header line, if i add more header lines, its treated as part of the array.

image.png

Regards,

Bashar

0 REPLIES 0