Tweek, you don't need the dd2.read alias with the while loop. Use the filter command and its -fo switch:
if ($devent == InIt) && ($isfile(dd2.txt)) { filter -fo dd2.txt DD2 1 }
Then you can remove the dd2.read alias, making your snippet a bit smaller and compact. Keep it up.