Capturing and displaying the abending job JCL

When the JCLcapture option is in effect during real-time processing, Fault Analyzer attempts to obtain the JCL and save it in the fault entry. This feature is available with JES2 only.

See JclCapture.

To retrieve the saved JCL:
  • Use the JCL command from within the interactive reanalysis report. See JCL.
  • Select the "Abend Job JCL" point-and-shoot field from the "Abend Job Information" section of the interactive reanalysis report.
  • Use the IDIGET command from within a REXX Formatting user exit to retrieve the saved _JCL stem. For example:
    
    /* REXX */                          
    "IDIGET _JCL"                       
    if rc = 0 then do                   
      "IDIWRITE '<L>Abend job JCL:'"    
      "IDIWRITE '<L>'"
      do i = 1 to _jcl.0                
        "IDIWRITE '<L>"_jcl.i"'"        
      end                               
    end                                 
    else do                             
      "IDIWRITE '<L>JCL not available'" 
    end                                 
    exit 0