.txt to .csv - Multiple Line & Character Length HELP!

You can transform the sample file as follows:

  1. Extract record type from each row.
  2. Derive tables for each record type and filter rows to keep only one record type per derived table.
  3. In each derived table, use the “Split fixed width text” action to split text into columns.
  4. Merge the result back into one table using the “Append table” action in the “Append columns” mode.

See the example project below:
load varying column width text.morph (5.7 KB)