#!/bin/ksh
#**********************************************************************#
#*                                                                    *#
#* Copyright (c) 2001 by Sun Microsystems, Inc.                       *#
#* All rights reserved.                                               *#
#*                                                                    *#
#**********************************************************************#


#                                                                      #
# JOB MACRO           :     LOGMSG                                     #
# Purpose             :     Display message in job history file during #
#                           job execution.                             #
#                                                                      #
########################################################################

log_msg()
{
   
   comment=$* ; export comment

return
}

########################################################################
#                                                                      #
#                                                                      #
# MAIN CODE SECTION  main code section                                 #
#                                                                      #
#                                                                      #
########################################################################


comment=$*

. verify_jobstatus
. beginjob.${EBMSYS}.${JON}
. current_proc_level.${EBMSYS}.${JON}

. check_bypass_step

if [ "$BYPASS" != "YES" ]
then
   print_message_STEPNAME='' ; export print_message_STEPNAME
   if [ -f beginproc.setparms.${EBMSYS}.${JON}.${PROC_LEVEL} ]
   then
      . beginproc.setparms.${EBMSYS}.${JON}.${PROC_LEVEL}
   fi
   if [ -f setparm.${EBMSYS}.${JON}.${PROC_LEVEL} ]
   then
      . setparm.${EBMSYS}.${JON}.${PROC_LEVEL}
   fi

   if [ "a$comment" != "a" ]
   then 
      print_message LOGMSG "$comment"
   fi
fi
exit 0
