Hi! i would like to open multiple output files at different time periods of the simulation i tried the following code proc next {file name} global ns_ traceid_ close $traceid_ set traceid_ [open $filename w] $ns_ trace-all $traceid_ } at 240.0 "next" $newtracefile but my output file is empty. where did i go wrong. could some one help me out anupama