IBM Support

System Automation implementation tip for MVS Z EOD command

Troubleshooting


Problem

Customer was interested in adding the MVS "Z EOD" command to their system shutdown processes and was asking whether to perform this command before or after JES2 or JES3 was terminated, and how to prevent the command from being issued if they were only stopping and restarting JES2/3 as a single application and no other resources were being terminated at that time.

Cause

The MVS Z EOD command is a useful command at system shutdown as it writes out any remaining SMF and SYSLOG buffers and terminates these services cleanly. Details on the command can be gathered from the appropriate z/OS Commands manual. Customer wished to automate submission of this command using System Automation z/OS product (5698-SA3) but could find no information on how to do so.

Resolving The Problem

Customers who wish to have SA z/OS automation perform the MVS Z EOD command during their system shutdown are advised to make the MVS Z EOD command an entry in their SA PDB (policy database) in the JES SHUTFINAL commands definition area.

Care should also be taken that the command only be performed for a complete system shutdown and not performed for a JES stop and restart where no other applications are involved in shutdown. This can be accomplished by making the SHUTFINAL issue an exec which determines if the system is being shutdown (ie. INGVOTE winning vote is for a STOP against a SYG resource) or if just the JES application is being terminated. If the rexx determines a SYG resource is being terminated then it would issue the MVS Z EOD command, otherwise it would skip the command. SA z/OS provides a command INGRYSHU which can be used for this purpose or customers can devise their own solution.

Note that GDPS customers with SA z/OS V3R3 and higher can take advantage of the new SYSTEM_SHUTDOWN MVS Component (MVC) MESSAGES entry to submit SA or other commands at prescribed phases during shutdown; this is ONLY applicable for GDPS clients.

Note: V3R3 is no longer in service, as of Sep 2016.

Consult the SA zOS publications for more information on this topic if client runs GDPS and this solution is of interest (reference URL included elsewhere in this document).

[{"Product":{"code":"SSWRCJ","label":"IBM Tivoli System Automation for z\/OS"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

SA SAz SAzOS SAfzOS

Document Information

Modified date:
08 August 2018

UID

swg21214988