#-------------------------------------------------------------------------------
# Function to create a file with date and time details in the prologue.
# $1 = new filename, $2 = ksh date format (a date or timestamp string for display),
# $3 = debug switch (ksh set: +x for off, -x for on).
#-------------------------------------------------------------------------------
 
INIT_OUTPUT_FILE()
{
 set "$3"
 OUTPUT_FILE="$1"
 DATE_FORMAT="$2"

 print "________________________________"   >  ${OUTPUT_FILE}
 print "Date/time: `date ${DATE_FORMAT}`"   >> ${OUTPUT_FILE}
 print "________________________________\n" >> ${OUTPUT_FILE}
}
