I have written a small UC4 script to loop through a file an perform some actions with each line. Something like this:
:SET &HND# = PREP_PROCESS_FILE(&HOST#, &FILE#)
: SET &LINE# = GET_PROCESS_LINE(&HND#)
: <perform some actions>
Unfortunately, the process is being delayed each few lines. The message "U0010037 Objekt: 'JOBS.WIN.***', Mandant: '0001': Prozessierung unterbrochen, möglicherweise Endlos-Schleife! Script-Prozessierung wird in '016' Sekunden fortgesetzt." is being reported.
Translated, this means something like "Processing has been delayed, possible endless loop! Script-Processing will continue in 16 seconds."
The interval doubles each time. It starts with 1 second delay, then 2, then 4, and so on. So actually, it takes virtually endless to process al the lines in the file.
How can these delays be avoided?