Cannot Assign GDG File With Relative Version (Doc ID 1502359.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 using following JOB, m_FileAssign fails due to relative version number was not found.

The problem happen with following case,

  1)Use GDG DB management.
  2)Define max generation number is 1 using m_GenDefine -s 1
  3)Use MT_GDG_COMMIT=STEP
  4)Specify relative version which is created before step.

  m_JobBegin -j GDGMAX1 -s START -v 2.0 -c A
  while true ;
  do
         m_PhaseBegin
         case ${CURRENT_LABEL} in
  (START)
         m_GenDefine -s 1 ${DATA}/ORACLE.DEMO.GDGF88
         JUMP_LABEL=STEP1
         ;;
  (STEP1)
         m_FileAssign -d NEW,CATLG,DELETE -g +1 FILE1
  ${DATA}/ORACLE.DEMO.GDGF88
         m_ProgramExec IEFBR14
         JUMP_LABEL=STEP2
         ;;
  (STEP2)
         m_FileAssign -d SHR -g +1 FILE01 ${DATA}/ORACLE.DEMO.GDGF88
         m_ProgramExec IEFBR14
         JUMP_LABEL=END_JOB
         ;;
  (END_JOB)
         break
         ;;
  (*)
         m_RcSet ${MT_RC_ABORT:-S999} "Unknown label : ${CURRENT_LABEL}"
         break
         ;;
  esac
  m_PhaseEnd
  done
  m_JobEnd

  
  The error message:
  

  ERROR    mi_GenerationFileNameGet: The file (Relative generation number 0 is
  not found) could not be found
           mi_FileAssign: Internal Error (mi_GenerationFileNameGet "+1"
  "/home/work2/artlab/tuxjes/data/ORACLE.DEMO.GDGF88" mt_GenerationFileName)
  RC=123
  ERROR    m_FileAssign: The internal action function (mi_FileAssign -d SHR -g
  +1 FILE01 /home/work2/artlab/tuxjes/data/ORACLE.DEMO.GDGF88) returns a code
  different from 0 (123)
  WARNING  m_ProgramExec: The API function does nothing because of a previous
  abort

 

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