search cancel

Integrating the new Banner "Java" job type with the Banner Rapid Automation Agent

book

Article ID: 89620

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Integrating the new Banner "Java" job type with the Banner Rapid Automation Agent

Environment

Release: AOMBOA99000-3.0-Automic-Operations Manager-Business Objects Agent
Component:

Resolution

Detailed Description and Symptoms

The Banner Rapid Automation Agent 3.00 was release last year before Banner General 8.5 was released.  The baseline code for GJAJOBS.shl does not include Automic job capture.  As it stands right now if you were to run a Java job in Banner using the new Java job type, Automic would not capture it. 


Solution

add the following to their gjajobs.shl script.

============================================================================================

As long as you add the changes for AUDIT TRAIL: 8.4.2 you should be fine.
Just have to add getting the return code, same way we do it for Pro C or Cobol programs.
So it can be passed back to AM to catch errors.
 
J) cat /dev/null                                      > $H/$TEMP.in
      chmod 600 $H/$TEMP.in
      echo "$5"                                         >> $H/$TEMP.in
      echo '$JOB'                                       >> $H/$TEMP.shl
      echo 'progRet=$?'                                 >> $H/$TEMP.shl
      echo 'if [ -f $H/$TEMP.in ]'                      >> $H/$TEMP.shl
      echo 'then'                                       >> $H/$TEMP.shl
      echo '/bin/rm $H/$TEMP.in'                        >> $H/$TEMP.shl
      echo 'fi'                                         >> $H/$TEMP.shl
      echo 'if [ -f $H/$TEMP.shl ]'                     >> $H/$TEMP.shl
      echo 'then'                                       >> $H/$TEMP.shl
      echo '/bin/rm $H/$TEMP.shl'                       >> $H/$TEMP.shl
      echo 'fi'                                         >> $H/$TEMP.shl
      echo 'exit $progRet'                              >> $H/$TEMP.shl;;