Hi
you have some errors with your llb.
You do not need to use the new or existing function with the open file, asa it does not work with new file!
Change to existing !
See attched gif.
Also you have three loops that are not sequenced !! Which loop gains control first ?? Anybodies guess !!
Also they appear to run inifinitly- chang boolean false to a control so possible to stop !!
xseadog