#-------------------------------------------------------------------------------
# Head a new file with the calling program name and timestamp in the prologue.
# $1 = new filename,
# $2 = debug switch (ksh set: +x for off, -x for on).
#-------------------------------------------------------------------------------
 
INIT_OUTPUT_FILE()
{
 set "$2"
 OUTPUT_FILE="$1"

 print "__________________________________________"   >  ${OUTPUT_FILE}
 print " $0: `date`                               "   >> ${OUTPUT_FILE}
 print "__________________________________________\n" >> ${OUTPUT_FILE}
}
