Processing multiple files awk

hai i need my single awk script to act on 4 trace files of ns2 and to calculate througput and it should print result from each trace file in a single trace file. i tried with the following code but it doesnt work

 awk -f awkscript inputfile1 inputfile2 inputfile3 inputfile4>outputfile
 please help me with a correct command

Please show a representative sample of input and desired output. What is your script and what did not work?

sir.... My awk script contain a long program that extracts data from a trace file and it will calculate throughput and delay and it ll print those values. its working when given as

awk -f awkscript inputfile>outputfile
but it doesnt work when i give as 
awk -f awkscript inputfile1 inputfile2 inputfile3 inputfile4>outputfile

its calculating average of all the file,s output and displaying

Your awk script is not capable to handling multiple files then!..

try something like this:

for filename in   inputfile1 inputfile2 inputfile3 inputfile4 
awk -f awkscript $filename >> outputfile
done

You also redirect the loop, then you do not need to append:

for filename in inputfile1 inputfile2 inputfile3 inputfile4
do 
  awk -f awkscript "$filename"
done > outputfile