My guess is that it is not awk that's the problem, but the program that tries to generate the awk script. Since it contains stuff like S["/; s/!.*"], my money is on sed.
Do you have (GNU) sed installed on the machine?
schot
2010-09-01 10:29:50