hi all,
i have a flat file. i have to store the data of this file in a structured PF.
the problem is that the delimiter for the fields in the flat file is one space-- ' '
now when i do a Scan to store the position of all the blanks, it doesnt work. the first blank position it gives me is wrong and the rest are all consecutive.
my flat file looks like this:
Report width . . . . . : 1000
....+.... 1....+.... 2....+.... 3....+.... 4....+.... 5....+.... 6....+.... 7..
8000102346.00 282820437807.00 500 0 0 0 778.28 0 0 99 IL
8000102353.00 282820416381.00 500 0 0 0 1240 0 0 0 IL
8000102361.00 343460155491.00 500 0 369.95 0 2617.33 6.85 0 0 NE
my rpg code is:
dDelimiter s 1 Inz(' ')
c Delimiter Scan DATA Position
the array populated is:
POSITION(1) = 063.
POSITION(2) = 064.
POSITION(3) = 065.
POSITION(4) = 066.
POSITION(5) = 067.
POSITION(6) = 068.
POSITION(7) = 069.
POSITION(8) = 070.
POSITION(9) = 071.
POSITION(10) = 072.
POSITION(11) = 073.
POSITION(12) = 074.
POSITION(13) = 075.
please help!
TIA
ruma
i have a flat file. i have to store the data of this file in a structured PF.
the problem is that the delimiter for the fields in the flat file is one space-- ' '
now when i do a Scan to store the position of all the blanks, it doesnt work. the first blank position it gives me is wrong and the rest are all consecutive.
my flat file looks like this:
Report width . . . . . : 1000
....+.... 1....+.... 2....+.... 3....+.... 4....+.... 5....+.... 6....+.... 7..
8000102346.00 282820437807.00 500 0 0 0 778.28 0 0 99 IL
8000102353.00 282820416381.00 500 0 0 0 1240 0 0 0 IL
8000102361.00 343460155491.00 500 0 369.95 0 2617.33 6.85 0 0 NE
my rpg code is:
dDelimiter s 1 Inz(' ')
c Delimiter Scan DATA Position
the array populated is:
POSITION(1) = 063.
POSITION(2) = 064.
POSITION(3) = 065.
POSITION(4) = 066.
POSITION(5) = 067.
POSITION(6) = 068.
POSITION(7) = 069.
POSITION(8) = 070.
POSITION(9) = 071.
POSITION(10) = 072.
POSITION(11) = 073.
POSITION(12) = 074.
POSITION(13) = 075.
please help!
TIA
ruma




Comment