Abnormal Termination by User
 SimoABN0 - The COBOL Source Code
When technology complements business    Copyright © 1987-2012  SimoTime Enterprises  All Rights Reserved
  Table of Contents Version 10.11.01 
  Introduction
  SimoABN0, What It Does
  SimoABN0, How To Use
  The COBOL Source Code
  Summary
  Software Agreement and Disclaimer
  Downloads and Links to Similar Pages
  Glossary of Terms
  Comments, Suggestions or Feedback
  Company Overview
The SimoTime Home Page

Introduction
(Next) (Previous) (Table-of-Contents)

This document provides a listing of the COBOL source code for the callable routine SimoABN0.. Additional information about this program may be obtained by sending an e-mail to: helpdesk@simotime.com

SimoABN0, What It Does
(Next) (Previous) (Table-of-Contents)

The SimoABN0 routine (or callable program) is for use in a Micro Focus environment. The routine will call MFEVENTS.CBL to display the call stack and then issue a STOP RUN to terminiate processing.

* ABTESTC1 Example of a driver program for ABEND example    V10.06.08, ABTESTC1
* ABTESTC1 program is STARTING                                         ABTESTC1
* ABSUBRC1 Example of a called program for ABEND example    V10.06.08, ABSUBRC1
* ABSUBRC1 program is STARTING                                         ABSUBRC1
* ABSUBRC2 Example of a called program calling ABEND member V10.06.08, ABSUBRC2
* ABSUBRC2 program is STARTING                                         ABSUBRC2
* SIMOABN0 ABENDING, display the call stack.  v08.01.24 http://www.simotime.com
* SIMOABN0 Copyright 1987-2011   SimoTime Enterprises, LLC  All Rights Reserved
* MFEVENTS ABENDING, display the call stack.  v10.06.08 http://www.simotime.com
* MFEVENTS Copyright 1987-2011   SimoTime Enterprises, LLC  All Rights Reserved
* MFEVENTS SIMOABN0
* MFEVENTS ABSUBRC2
* MFEVENTS ABSUBRC1
* MFEVENTS ABTESTC1
* SIMOABN0 Processing is being Terminated…

SimoABN0, How To Use
(Next) (Previous) (Table-of-Contents)

The following will call the ABEND routine. Parameters are not required. If parameters are specified they will be ignored. A programmer may display messages prior to calling the ABEND routine.

           CALL 'SIMOABN0'

The COBOL Source Code
(Next) (Previous) (Table-of-Contents)

The following is the COBOL Source Code.

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    SIMOABN0.
       AUTHOR.        SIMOTIME ENTERPRISES.
      *****************************************************************
      * Copyright (C) 1987-2012 SimoTime Enterprises.                 *
      *                                                               *
      * All rights reserved.  Unpublished, all rights reserved under  *
      * copyright law and international treaty.  Use of a copyright   *
      * notice is precautionary only and does not imply publication   *
      * or disclosure.                                                *
      *                                                               *
      * Permission to use, copy, modify and distribute this software  *
      * for any commercial purpose requires a fee to be paid to       *
      * SimoTime Enterprises. Once the fee is received by SimoTime    *
      * the latest version of the software will be delivered and a    *
      * license will be granted for use within an enterprise,         *
      * provided the SimoTime copyright notice appear on all copies   *
      * of the software. The SimoTime name or Logo may not be used    *
      * in any advertising or publicity pertaining to the use of the  *
      * software without the written permission of SimoTime           *
      * Enterprises.                                                  *
      *                                                               *
      * Permission to use, copy and modify this software for any      *
      * non-commercial purpose and without fee is hereby granted,     *
      * provided the SimoTime copyright notice appear on all copies   *
      * of the software. The SimoTime name or Logo may not be used    *
      * in any advertising or publicity pertaining to the use of the  *
      * software without the written permission of SimoTime           *
      * Enterprises.                                                  *
      *                                                               *
      * SimoTime Enterprises makes no warranty or representations     *
      * about the suitability of the software for any purpose. It is  *
      * provided "AS IS" without any expressed or implied warranty,   *
      * including the implied warranties of merchantability, fitness  *
      * for a particular purpose and non-infringement. SimoTime       *
      * Enterprises shall not be liable for any direct, indirect,     *
      * special or consequential damages resulting from the loss of   *
      * use, data or projects, whether in an action of contract or    *
      * tort, arising out of or in connection with the use or         *
      * performance of this software                                  *
      *                                                               *
      * SimoTime Enterprises                                          *
      * 15 Carnoustie Drive                                           *
      * Novato, CA 94949-5849                                         *
      * 415.883.6565                                                  *
      *                                                               *
      * RESTRICTED RIGHTS LEGEND                                      *
      * Use, duplication, or disclosure by the Government is subject  *
      * to restrictions as set forth in subparagraph (c)(1)(ii) of    *
      * the Rights in Technical Data and Computer Software clause at  *
      * DFARS 52.227-7013 or subparagraphs (c)(1) and (2) of          *
      * Commercial  Computer Software - Restricted Rights  at 48      *
      * CFR 52.227-19, as applicable.  Contact SimoTime Enterprises,  *
      * 15 Carnoustie Drive, Novato, CA 94949-5849.                   *
      *                                                               *
      *****************************************************************
      *      This program is provided by SimoTime Enterprises         *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *                                                               *
      *****************************************************************
      * SOURCE MODULE SIMOABN0.CBL
      *****************************************************************
      *
      * SIMOABN0 - Displays a message and does a STOP RUN.
      *
      * DESCRIPTION
      * -----------
      * This program will display a message and force an ABEND with
      * a GOBACK or STOP RUN. The RETURN-CODE will be set to 16.
      *
      * This program is for use in a Micro Focus environment.
      *
      ****************************************************************
      *
      * MAINTENANCE
      * -----------
      * 1989/02/27 SimoTime, Created program.
      * 1989/02/27 SimoTime, no changes to date
      *
      *****************************************************************
      *
       DATA DIVISION.
       WORKING-STORAGE SECTION.
      *
      *****************************************************************
      *    Data-structure for Title and Copyright...
      *    ------------------------------------------------------------
       01  SIM-TITLE.
           05  T1 pic X(11) value '* SIMOABN0 '.
           05  T2 pic X(34) value 'ABENDING, display the call stack. '.
           05  T3 pic X(10) value ' v08.01.24'.
           05  T4 pic X(24) value ' http://www.simotime.com'.
       01  SIM-COPYRIGHT.
           05  C1 pic X(11) value '* SIMOABN0 '.
           05  C2 pic X(20) value 'Copyright 1987-2012 '.
           05  C3 pic X(28) value '--- SimoTime Enterprises ---'.
           05  C4 pic X(20) value ' All Rights Reserved'.

       01  MESSAGE-BUFFER.
           05  MESSAGE-HEADER      pic X(11)   value '* SIMOABN0 '.
           05  MESSAGE-TEXT.
               10  MESSAGE-TEXT-01 pic X(68)   value SPACES.
               10  MESSAGE-TEXT-02 pic X(177)  value SPACES.

      *****************************************************************
       PROCEDURE DIVISION.
      *    The following will cause the ANIMATOR to be started. By
      *    using the View, Debug Windows and Call Stack you can see
      *    the call progression that got you here.
      *    Note: for this to work the asterisk in column 7 must be
      *          removed.
      *    call 'CBL_DEBUGBREAK'

           move SIM-TITLE to MESSAGE-BUFFER
           perform Z-DISPLAY-CONSOLE-MESSAGE
           move SIM-COPYRIGHT to MESSAGE-BUFFER
           perform Z-DISPLAY-CONSOLE-MESSAGE

      *    The following will call MFEVENTS to display the call stack
      *    for the Micro Focus environment.
           move 'Call Stack could not be processed...' to MESSAGE-TEXT
           call 'MFEVENTS' on exception
                           perform Z-DISPLAY-CONSOLE-MESSAGE
           end-call

           move 'Processing is being Terminated...   ' to MESSAGE-TEXT
           perform Z-DISPLAY-CONSOLE-MESSAGE
           add 16 to ZERO giving RETURN-CODE

      *    The STOP RUN will force an immediate ABEND.
           STOP RUN.

      *****************************************************************
      * Display a message generated by this program.                  *
      * The "upon console" will cause the message to be displayed     *
      * on the system console. Mainframe system operators usually     *
      * discourage this technique so minimize the number of messages. *
      *****************************************************************
       Z-DISPLAY-CONSOLE-MESSAGE.
           if MESSAGE-TEXT-02 = SPACES
      *       display MESSAGE-BUFFER(1:79) upon console
              display MESSAGE-BUFFER(1:79)
           else
      *       display MESSAGE-BUFFER       upon console
              display MESSAGE-BUFFER
           end-if
           move SPACES to MESSAGE-TEXT
           exit.

Summary
(Next) (Previous) (Table-of-Contents)

The purpose of this document is to assist as a tutorial for new programmers or as a quick reference for experienced programmers. In the world of programming there are many ways to solve a problem. This documents and the links to other documents are intended to provide a choice of alternatives.

Software Agreement and Disclaimer
(Next) (Previous) (Table-of-Contents)

Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Enterprises. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Enterprises.

SimoTime Enterprises makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Enterprises shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.

Downloads and Links to Similar Pages
(Next) (Previous) (Table-of-Contents)

This section includes links to documents with additional information that is beyond the scope and purpose of this document.

To review all the information available on this site start at  The SimoTime Home Page .

Note: You must be attached to the Internet to download a Z-Pack or view the list.

You may view an example of a COBOL program that uses SimoABN0 at http://www.simotime.com/abtest01.htm.

You may view the complete list of SimoTime callable modules, interface programs or driver programs at http://www.simotime.com/sim4dzip.htm#ZipsforSharedModules.

Glossary of Terms
(Next) (Previous) (Table-of-Contents)

Check out  The SimoTime Glossary  for a list of terms and definitions used in the documents provided by SimoTime.

Comments, Suggestions or Feedback
(Next) (Previous) (Table-of-Contents)

This document was created and is maintained by SimoTime Enterprises.

If you have any questions, suggestions, comments or feedback please call or send an e-mail to: helpdesk@simotime.com

We appreciate hearing from you.

Company Overview
(Next) (Previous) (Table-of-Contents)

Founded in 1987, SimoTime Enterprises is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. This includes the smallest thin client using the Internet and the very large mainframe systems. There is more to making the Internet work for your company's business than just having a nice looking WEB site. It is about combining the latest technologies and existing technologies with practical business experience. It's about the business of doing business and looking good in the process. Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems.

Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com


Return-to-Top
SimoABN0 - The COBOL Source Code for an Abnormal Termination by User
Copyright © 1987-2012 SimoTime Enterprises  All Rights Reserved
When technology complements business
http://www.simotime.com