Hi there,
First of all Happy NY'21 !
I'm trying to read an input file with records separated by blank rows arranged in a long "portrait" mode.
Each record has two data structures:
a) an easily parsed format with a ":" separator for the first rows (e.g. NAME : ABCD)
b) a varying number of rows containing two numeric fields separated by a tab (a space in my attached example), the number of rows being described in the Num peaks field.
My needs are:
i) assign a unique RecordID for each record with a kind of while loop with the blank rows being the separators,
ii) create two new fields such as vectors of varying length for the numeric fields
iii) remove the rows with the numeric fields
iv) and finally convert the portrait data format to a wide landscape format (cross tab tool ?) in order to create a database with all these records.
I have attached an example with two records in the input format on the first XL tab and the output format I'd like to achieve before creating the database.
Any help/input from your side is highly appreciated.
Thanks in advance and stay safe.
Emmanuel