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
Categories z/OS
Created by Guest
Created on May 4, 2025

Enterprise COBOL for z/OS - Be able to associate an UDF prototype with a COBOL program declaring a RETURNING clause

Hi,

A User Defined Function prototype is generally intended to be associated with a COBOL User Defined Function.

However, it is also possible to associate it with a routine described in an other programming language, particularly a C routine.

It should also be possible to associate an UDF prototype with a COBOL program that declares a return value using a PROCEDURE DIVISION USING RETURNING clause.

By extension, it should be also possible to associate an UDF prototype with an ENTRY declaration in a COBOL program if a change is made to allow the declaration of a return value on an ENTRY statement, (see request COBOLVUE-I-410).

This would allow managing managed User Defined Functions libraries in a single loadmodule, with internal sharing of working declarations and routines, thus facilitating their development and maintenance since they are grouped in a single source text.

Thanks.

Idea priority Low
  • Admin
    Basil Kanneth
    Jul 30, 2025

    This idea has been reviewed and we believe that once we have "program prototypes" implemented, it should satisfy this idea. Since the focus will be towards implementing program prototypes, we are rejecting the details in this specific idea.

  • Admin
    Basil Kanneth
    Jun 3, 2025

    This idea is being investigated further.

  • Guest
    May 4, 2025

    It is possible to declare a COBOL subprogram with a PROCEDURE DIVISION RETURNING statement using a User Defined Function prototype: according to my tests, compiling a COBOL subprogram with a PROCEDURE DIVISION RETURNING declaration produces a binary code similar to a COBOL Function --> no runtime issues.

    However, it is not possible to validate a COBOL subprogram with a PROCEDURE DIVISION RETURNING declaration using a User Defined Function prototype (which only accepts a Function).