The Line Input reads a single record. The Loop command a few lines down
sends control back to the Do While command. This continues until and End of
File (EOF) is detected.
You can do a trim on the line and use its' length to determine if the line
is empty and then skip processing.
Through each loop, you can set a flag indicating what you are expecting and
process each line differently. For some of the rows, you can check the first
few characters for MOBILE or ATTACH to make sure you are on track.
Or you could read each set into an array and then process the array when you
read the start of a new set or EOF.