Skip to Main Content
IBM Z Software


This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace COBOL Compilers
Created by Guest
Created on Mar 20, 2013

COBOL-Program with no goback or Exit Programs

Writing a COBOL program without any GOBACK, EXIT PROGRAM or STOP RUN will produce a runtime error. It's necessary to get a warning by the compiler if none of these "BR14" are written

Idea priority High
  • Guest
    Reply
    |
    Sep 14, 2015

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Programming Languages
    Product - COBOL Compilers

    For recording keeping, the previous attributes were:
    Brand - Rational
    Product family - Design & development
    Product - COBOL Compilers

  • Guest
    Reply
    |
    Aug 19, 2013

    Since COBOL subprograms run fine with no GOBACK STOP RUN or EXIT PROGRAM, and the compiler cannot tell if a program is a MAIN or SUB program, any message would be misleading.

  • Guest
    Reply
    |
    Apr 22, 2013

    It's right; I get no runtime error if i haven't goback in subprograms. But I need GOBACK or . . within my _main_ program. Therefor this should be flagged (as information not warning) if no goback/exit programm exists.

    Allthough cobol standard allows to write programs without goback that isn't good programming. Is it?
    Thanx
    Ralf

  • Guest
    Reply
    |
    Apr 22, 2013

    I tested with a main program and got the runtime error. Have a look on
    http://www.cps4it.de/GSE/RFE_more_Info/Goback_01_Code.pdf
    http://www.cps4it.de/GSE/RFE_more_Info/Goback_02_JCL.pdf
    http://www.cps4it.de/GSE/RFE_more_Info/Goback_03_Job_Sysout.pdf
    http://www.cps4it.de/GSE/RFE_more_Info/Goback_04_Complist.pdf
    I've seen now that your answer was was for "sub programs". I wll test a.s.a.p.

  • Guest
    Reply
    |
    Apr 15, 2013

    >> A program with no GOBACK, EXIT PROGRAM, or STOP RUN is legal and will run correctly as a subprogram, << I'm astonished!

    I will check once more and give an answer (with code) as soon as possible.
    Ralf

  • Guest
    Reply
    |
    Apr 9, 2013

    A program with no GOBACK, EXIT PROGRAM, or STOP RUN is legal and will run correctly as a subprogram, per the COBOL Standard: An implicit EXIT
    PROGRAM statement is generated if the called program has no next executable
    statement. So, are you asking for a non-standard compiler option to flag such legal programs?