Tuxedo Application Runtime for CICS and Batch 12cR1 (12.1.1.0): Inaccurate Return Code (echo $?) If EJR Is Called With Option -C 4,LT Fails (Doc ID 1597342.1)

Last updated on NOVEMBER 04, 2016

Applies to:

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

Symptoms

 Execution of EJR fails.

However, when adding option option -C 4,LT  to m_JobBegin the return code (echo $?) is 0 as if there was no error !

 

$ EJR test3.ksh
ERROR    mi_FileBuild: The file (/easydbgtux02/DATA/fichier_de_test.txt)
exists
WARNING  mi_CondExec: Condition satisfied: ignore the current step
WARNING  m_PhaseBegin: Job condition is satisfied: terminate the job
$ echo $?
0


Find here after test3.ksh used here above with "-C 4,LT" option for m_JobBegin:

 

#!/bin/ksh
#@(#)--------------------------------------------------------------
#@(#)-
m_JobBegin -j testjob -s START -v 2.00 -c A -C '4,LT'
while true ;
do
    m_PhaseBegin
    case ${CURRENT_LABEL} in
        (START)
        # -----------------------------------------------------------------
        # Cree le fichier ${DATA}/fichier_de_test.txt
        # -----------------------------------------------------------------
        # -Step 1: Creation...
            JUMP_LABEL=DEFFILE
            ;;
 
        (DEFFILE)
            m_FileBuild -t LSEQ ${DATA}/fichier_de_test.txt
            JUMP_LABEL=WRITFIL1
            ;;
 
        (WRITFIL1)
            echo "WRITEFIL1" > ${DATA}/fichier_de_test.txt
            JUMP_LABEL=WRITFIL2
            ;;
 
        (WRITFIL2)
            echo "WRITEFIL2" > ${DATA}/fichier_de_test.txt
            JUMP_LABEL=END_JOB
            ;;
 
        (ABORT)
             break
            ;;
 
        (END_JOB)
            break
            ;;
 
        (*)
            m_RcSet ${MT_RC_ABORT:-S999} "Unknown label : ${JUMP_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