View previous topic :: View next topic
|
Author |
Message |
vice_versa Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 19 Location: usa
|
|
|
|
Hi all,
The input file as blow :
Code: |
input:
input:
9988383883890612099 # 20220101# 00234539# 9999#10000#2816.22#+1000049901#
3282373778033667999 # 20220101# 00234543# 6696#257800#1406323.98#+3783733657117#
2347347723773276149 # 20220101# 00234540# 9999#4641#4368.03#+23690#
3832832823837275101 # 20220101# 00234551# 9999#500#252.95#+1330039801#
3732732727373777774 # 20220101# 00234558# 9999#10#.10#+31054101#
output:
9988383883890612099 # 20220101# 00234539# 9999# 100.00 # 2816.22 #+1000049901 #
3282373778033667999 # 20220101# 00234543# 6696# 2578.00 # 1406323.98 #+3783733657117#
2347347723773276149 # 20220101# 00234540# 9999# 46.41 # 4368.03 #+23690 #
3832832823837275101 # 20220101# 00234551# 9999# 5.00 # 252.95 #+1330039801 #
3732732727373777774 # 20220101# 00234558# 9999# 0.10 # 0.10 #+31054101 #
|
how can do it? thanks in advance. [/list] |
|
Back to top |
|
 |
Joerg.Findeisen
Active Member

Joined: 15 Aug 2015 Posts: 971 Location: Bamberg, Germany
|
|
|
|
Update your samples. I don't think they look like this. |
|
Back to top |
|
 |
vice_versa Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 19 Location: usa
|
|
|
|
Joerg.Findeisen wrote: |
Update your samples. I don't think they look like this. |
Code: |
Input:
9988383883890612099 # 20220101# 00234539# 9999#10000#2816.22#+1000049901#
3282373778033667999 # 20220101# 00234543# 6696#257800#1406323.98#+3783733657117#
2347347723773276149 # 20220101# 00234540# 9999#4641#4368.03#+23690#
3832832823837275101 # 20220101# 00234551# 9999#500#252.95#+1330039801#
3732732727373777774 # 20220101# 00234558# 9999#10#.10#+31054101#
output:
9988383883890612099 # 20220101# 00234539# 9999# 100.00 # 2816.22 #+1000049901 #
3282373778033667999 # 20220101# 00234543# 6696# 2578.00 # 1406323.98 #+3783733657117 #
2347347723773276149 # 20220101# 00234540# 9999# 46.41 # 4368.03 #+23690 #
3832832823837275101 # 20220101# 00234551# 9999# 5.00 # 252.95 #+1330039801 #
3732732727373777774 # 20220101# 00234558# 9999# 0.10 # 0.10 #+31054101 #
|
|
|
Back to top |
|
 |
Joerg.Findeisen
Active Member

Joined: 15 Aug 2015 Posts: 971 Location: Bamberg, Germany
|
|
|
|
Use INREC PARSE to split the fields by delimiter, then rebuild as needed. |
|
Back to top |
|
 |
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 1699
|
|
Back to top |
|
 |
|