Batch Assembler Fault Diagnosis



This tutorial will guide you through some of the capabilities within BMC AMI DevX Abend-AID, including:

  • Using BMC AMI DevX Abend-AID to examine a batch Assembler abend.
  • Utilizing Abend-AID's features to view storage, compiled listings, variable values.
  • Taking advantage of Abend-AID's link to BMC AMI DevX File-AID to view formatted VSAM, QSAM, etc., files.


Table of Contents


Starting BMC AMI DevX Abend-AID

To access Abend-AID for Batch within BMC AMI DevX Workbench for Eclipse:

Do This
  • Click on the BMC dropdown.
  • Click on Operations.
  • Click on Abend-AID.
  • Click on TestDrive.













The Abend-AID Logon view opens in the bottom pane.

  • Double-click the tab for the Abend-AID view to maximize the pane.
  • Enter your Test Drive ID and password, and then press enter.

Start AA.JPG

BMC AA sign in.jpg

This opens a view into Abend-AID within your BMC AMI DevX Workbench for Eclipse IDE. Integration of the tools needed for developers to do their daily jobs is a key feature of the Workbench experience. 

The main menu of Abend-AID is the gateway to many useful views of your Fault Analysis data. We'll start by looking at the Fault Summary of a specific job (CWEZXXXX) to spotlight how you can leverage Abend-AID to quickly understand the root cause of a reported abend.


Do This

When successfully logged on, you are taken to the Abend-AID main menu.

  • Click on 'Fault Summary'.

BMC AA home arrow to fault summary.jpg

worddavb834e837a9d92100bce0ebfdaccb39ba.png

Fault Summary provides you easy, hyperlinked access to your generated batch, CICS, IMS, and SVC dumps sortable by job name, CICS region name, IMS message region name, etc. Each column provides a masking field (asterisks) to shorten the time needed to find your dump.



Do This
  • Type CWEZ into the masking field in the Job Name column and press <Enter>.

worddavde3147a83453363413ce937631ab1c0e.png

worddavc667f3517d4a7dcf56f300e7b85847da.png

You now have filtered to only jobnames that begin with CWEZ. Next, we'll dig a little deeper using Abend-AID's hyperlinks.


Do This
  • Click on the 'CWEZXXXX' hyperlink.

aa1-image13a.png

worddav2378bfdd38f58617a019f4472ba8b780.png

We've now filtered down to entries only for jobname CWEZXXXX. Next, we'll select one of the entries to begin diagnosing an abend.



Do This

You can access your Abend-AID report using multiple pathways.


  • Click on entry 0017227 to view the Diagnostic Summary.




OR



  • Click the menu icon (circled in red) to the left of entry 0017227 to display the dropdown menu.






  • Select 'Diag' to view the Diagnostic Summary.

aa3-image015.png




aa3-image015a.png

aa3-image015b.png


The Diagnostic Summary

The Diagnostic Summary provides the information needed to diagnose a batch program error. The summary analyzes the abend, provides a probable reason why it occurred, and usually suggests a resolution. For COBOL, PL/I, and Assembler programs compiled with source support, the statement number and source code of the statement in error are shown.

We'll use the Diagnostic Summary as a window into details about the program, the listing, storage areas, a narrative explanation of the error code, and other information valuable in diagnosing an abend.


worddav42614136d918d9786e010a29e684d114.png 
worddav37a591967e1eb6b72fbb01516f28333f.png

The source code of the statement in error is displayed in the Analysis of Error section. For data-related errors, all Assembler variables for the statement in error are shown with their current values. The abending line of code is displayed in red. 


Do This
  • Click the Diagnostic Summary's 'CWAADATE' hyperlink to see details about the abended program.

worddave9084837b6a89100d6db233c68114e24.png



Program Detail Screen

The Program Detail screen provides detailed information about the selected program and gives you hyperlinks to source listings, concatenations and storage areas.

 worddav9c8bec3fb3d55338ab42b3c77427250a.png 

Do This
  •  Click on the 'STEPLIB' hyperlink.

worddav151e2e6ec18f3b03b7154f19d30f9386.png

worddav986e82588db846dacd692bc1910df4ae.png 

The STEPLIB Concatenation screen displays the datasets and their associated volsers for the JOBLIB or STEPLIB DD statement defined in the JCL at the time of this abend. The highlighted dataset name is the load library from where the module was loaded.


Do This
  • Press <F3> to return to the Program Detail screen, then click the 'Listing' hyperlink to view the compiled listing.


aa3-image023.png

aa3-image024.png

The Assembler Listing screen displays the source listing statements of the selected program, highlighting the active statement (abending offset, program call, etc.). For Assembler programs, Abend-AID displays the entire source listing.



Do This
  • Press <F3> to return to the Program Detail screen, then click the 'Storage Areas' hyperlink to view the Assembler Storage Areas screen.

aa3-image025.png

aa3-image026.png

The Assembler Storage Areas menu gives you consolidated access to the storage areas that were available during a program call or at the time of abend.



Do This
  •  Click the 'Storage of CSECT' option.

aa3-image027.png

worddav88aa6ba2a8a9187091b29a4b20f99e97.png 
Abend-AID gives you clear and concise access to the entire CSECT of the program and the individual DSECTs defined within the load module or program object.


Do This
  • Click the menu icon next to 'CWAADATE' (see the red circle), then click on 'Select Active Using' to display the Assembler program code.

aa3-image029.png


select active using cwaadate.JPG

The Assembler Storage Area screen displays for you the fields contained within the selected program storage area. It provides information about each field such as the field offset, field label, statement number, and field contents.


 

Do This
  • Press <F3> to return to the Assembler Storage Menu screen. Next, click the menu icon (red circle) next to 'HIRE-DATE' and click 'Select Active Using' to display the DSECT.

aa3-image030a.png 

select active using hire_date.JPG

As with the 'Select Active Using' option when looking at the CSECT, here you can find the field address and offset, the statement number and field contents for the selected DSECT.



Do This
  • Press <F3> four times to return to the Diagnostic Summary.

aa3-image017.png


To summarize, the Diagnostic Summary screen provides an extensive amount of information to begin fault analysis, and it also adds hyperlinks to additional information.


  • The abending line of code is highlighted, easily found and you can access the Assembler listing with hyperlinks to the surrounding statements.

aa3-image032.png


  • Abend-AID produces for you a narrative explanation of the abend and IBM messages that accompany the abend. 

aa3-image033.png

  • The Program Information subsection provides information about the load library or program object library the module was loaded from, the bind date/time, with hyperlinks to the Program Detail screen and the STEPLIB Concatenation screen.

worddav314607fd02b3ed4bbd08075712aa1468.png


  • The Call Trace Summary spells out the sequence of programs called from the initial program to the abend. Hyperlinks take you to the Program Detail screen for each program, or to the Call Detail screen (discussed next) for each offset.

worddav203a7068e8bc04db0f2755610daac017.png 

Clicking any hyperlinked program name takes you to the Program Detail screen for that specific program.


Do This
  • In the Call Trace Summary subsection, click the offset x'10D4' hyperlink (in the red box under the Return Value column).

worddav4bb0697887401f119a4fc4984ea1de2f.png



worddav32c6c2a6902d4767b8c065fcf2020d66.png

Abend-AID highlights for you the CALL Statement where CWAACOB calls CWAADATE. Included are the call statement argument definitions and values. Hyperlinks on this screen provide you quick access to the COBOL listing (in this case the calling program is a COBOL module) or to the Expanded Data field for the argument values.



Do This
  • Press <F3> to return to the Diagnostic Summary, then scroll down to the Supporting Information subsection and click on 'MODS'.

aa3-image039a.png

worddav62ea110be876d738f669e4ed0f92b37b.png 
Here you can see all the module names, libraries from which they were loaded, for all programs (both application and LE) that appear in the calling chain. Abend-AID indicates when modules are loaded from the LINKLIST and details the library set to help with your diagnosis. 


Do This
  • Press <F3> to go back to the Supporting Information, then click on 'LIBR'.

aa3-image040a.png

worddav162c98f0dd496e47449a3fc3c6bb896c.png 
This is another path to the STEPLIB Concatenation screen (earlier we used a hyperlink from the Program Detail screen). As you saw previously, the library from where the modules loaded is highlighted.



Do This
  • Press <F3> to return to the Supporting Information of Diagnostic Summary, then click on 'JES'.

aa3-image041a.png

worddavfc9cb690f4184c1acdccfa65805134bb.png 
If your system runs JES2, Abend-AID shows you the submitted JCL that produced the abend.



Do This
  • Press <F3> to return to the Supporting Information subsection of Diagnostic Summary, then click on 'FILE'.

aa3-image042a.png

File Summary Screen

The FILE command displays information about the files allocated to the abending program and their DD statements.
worddav5ab720c13d869379447ab378d312c624.png 



Do This
  • Click the menu icon next to EMPFILE (circled in red), then click 'Record Image'.

aa3-image044.png

worddav2ca2cae77bde880039e01829fd8ce88e.png

For DD statements that are sequential, QSAM or VSAM files, the operating system stores the current (and possibly the previous) record read or written. Record images (if they exist) for any non-spooled DD statement are viewable.



Do This
  • Press <F3> to return to the File Summary screen, then click on the menu button again and select 'File Detail'.

worddav739bc60b6d7c04b2e7692e6c6001f984.png

worddav94e75f654e012e7b366819b784039e45.png

The File Detail screen provides detailed information about the selected file associated with the abending job. The file can be browsed or edited using the quick access to BMC AMI DevX File-AID (if licensed).


Do This
  • Press <F3> to return to the File Summary screen, then click on the menu button once more and select 'File-AID Browse'.

worddav3df29b40c8c0f2cf58caee83de3f528c.png


Do This
  • A pop-up window requiring host selection may appear. Highlight the host and click 'OK'.

Select a host.jpg


Do This
  • If required, enter your TSO user ID and password (enables external security on your LPAR to validate that you have rights to view the file) and click 'OK'.

worddav16ffc429a9ec5f22df6cf83c6b753034.png


worddav301647ca51dcebba86e452af23307f5b.png

The File-AID Data Editor (browse mode) is invoked in a new editor view and provides you formatted, readable data.



Do This
  • Close the file in the editor view (using the 'X' in the tab) to return to Abend-AID. Double-click the Abend-AID - TestDrive tab two times to fully expand Abend-AID. You're still in the File Summary screen, so press <F3> to return to the Supporting Information screen, then click on 'PROG'.


Program Summary Screen


The Program Summary Information screen identifies all active modules involved in an abending application.

worddav37eebca34ee4494896a5d71405127658.png



Do This
  • Click on the menu icon next to program CWAADATE.

worddavfa7fc1ec3783f22b93219f593d20062f.png

From here you have links to extensive information about the application programs that comprise the active calling chain:

  • The Program Detail, Program Listing, and Program Storage options have all been covered in this document previously.
  • Clicking on the Compiler Options shows the language and version the program was compiled or assembled under, as well as the compile options (if the program was compiled with COBOL).
  • The remaining options will be covered in later BMC AMI DevX Abend-AID Test Drive tutorials.



Wrap-up

This concludes our look at how Abend-AID provides powerful tools for diagnosing Assembler batch abends. We hope that you have enjoyed your look at these capabilities and look forward to working with you to implement some or all of the solution within your systems. Please remember to complete the Test Drive survey, as both your sponsor and our team are very interested in your feedback on the Test Drive Experience.

You can choose from any of the available scripts from the panel to the left or return to the main page here: Welcome to Test Drive

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*