View previous topic :: View next topic
|
Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
I have a input file like this
Code: |
123 APT 21
MELLONE CIRCLE
LOS ANGELS
LA
12345
|
AND I WANT OUTPUT AS
Code: |
123APT21MELLONECIRCLELOSANGELSLA 12345
|
THANKS
R KARTHIK |
|
Back to top |
|
|
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
Read all the records from input file into One dimentional array. Write the high level group variable to output file.
--Parag |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi, i am very sorry for wrongly mentioning the file layout
INPUT file:
Code: |
123 APT 21 ---- field 1
MELLONE CIRCLE ---- field 2
LOS ANGELS ---- field 3
LA ---- field 4
12345 ---- field 5
01 wk-details.
05 field1
05 field2
05 field3
05 field4
05 field5
|
Output file:
Code: |
123APT21MELLONECIRCLELOSANGELSLA 12345
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
How will the output data be delimited should you ever want to rebuild the full address again from this data ??? |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
HI expat,
I want the o/p as mentioned that only. I will not used to rebuild that o/p.
Thanks
R KARTHIK |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Set up arrays for the input and the output.
Move 1 byte at a time from the input to the output skipping all of the blanks except for 1 after the state code. |
|
Back to top |
|
|
|