Thanks for offerring to help. I wish I could do as you ask!
To dissect the 900-line script would take hours of work. It touches both Oracle and MS SQL7 databases and basically moves records between them.
That said, I really didn't intend on this being a script question as much as an interpreter question. I don't think the problem actually lies within the script, and I am holding out hope that perhaps someone else came across the same problem and resolved it somehow.