foreach(set){ foreach(process){ write process info } if(showdaltrace){ foreach(dal trace record){ write trace record } } if(showhistory){ foreach(history){ write history info } }