Why is this so hard???

Yes, read my snippets...

{
:local jobID [:execute file=temp1.txt
"/ip dhcp-server lease; :foreach i in=[find] do={:put ("$[get $i mac-address],$[get $i address],$[get $i host-name],$[get $i comment]")}"]
:while ([:len [/system script job find where .id=$jobID]] > 0) do={
:delay 1s
}
}

what????