Hi,
I have a problem with an extract file that I am trying to use in another application. The file wraps rows of data extracted from a database table that has a 'long' field with carriage returns. What I need to do is to join up the errant rows so that I can then use the file to import. (I realise that the best option is to fix the extract code, but this will take months for the developers to get around to.
The file looks like:
ID FIELD1 FIELD2 LONGFIELD
8% 123 abc Free text
8% 124 def free text with a
carriage return wrapping text
posible over many line
8% etc
Need to join up the wrapped lines. The consistent data pattern is that 'real' rows start with a 7 digit ID starting with 8. There are line feed/carriage returns on the end of every row.
Looking for a script approach to fixing this.
Thanks in advance.
I have a problem with an extract file that I am trying to use in another application. The file wraps rows of data extracted from a database table that has a 'long' field with carriage returns. What I need to do is to join up the errant rows so that I can then use the file to import. (I realise that the best option is to fix the extract code, but this will take months for the developers to get around to.
The file looks like:
ID FIELD1 FIELD2 LONGFIELD
8% 123 abc Free text
8% 124 def free text with a
carriage return wrapping text
posible over many line
8% etc
Need to join up the wrapped lines. The consistent data pattern is that 'real' rows start with a 7 digit ID starting with 8. There are line feed/carriage returns on the end of every row.
Looking for a script approach to fixing this.
Thanks in advance.