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).
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:
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 an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
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.
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
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.
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
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.
>> 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
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?