M_JOBEND Fails After M_PROGRAMEXEC Failed (Doc ID 1502360.1)

Last updated on DECEMBER 24, 2012

Applies to:

Tuxedo Application Runtime for CICS and Batch - Version 11.1.1.3.0 and later
Information in this document applies to any platform.

Symptoms

   When executing following JOB, if m_ProgramExec fails, m_JobEnd fails with
  following error.

  ERROR MESSAGE:
  ----------------------------------------------------------
  ERROR    mi_FileEmpty: The type UNKNOWN of file is unknown
           mi_JobEnd: Internal Error (mi_FileEmpty -r mt_FileEmpty
  "/home/work2/artlab/tuxjes/trf-jcl/LOGS/log/JOB001_12324__SYSOUT_1") RC=123
  ----------------------------------------------------------

  JCL
  ----------------------------------------------------------

  m_JobBegin -j JOB001 -s START -v 2.0 -c A
  while true ;
  do
         m_PhaseBegin
         case ${CURRENT_LABEL} in
  (START)
         JUMP_LABEL=STEP1
         ;;
  (STEP1)
         m_FileAssign -d MOD,DELETE,DELETE FILE01 ${DATA}/ORACLE.DEMO.DATA02
         m_ProgramExec java JavaAP
         JUMP_LABEL=END_JOB
         ;;
  (END_JOB)
         break
         ;;
  (*)
         m_RcSet ${MT_RC_ABORT:-S999} "Unknown label : ${CURRENT_LABEL}"
         break
         ;;
  esac
  m_PhaseEnd
  done
  m_JobEnd

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms