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 Delivered
Workspace COBOL Compilers
Created by Guest
Created on Oct 30, 2014

Flag uninitialized but used Variables

The compiler should flag Fields, which are used, but not initialized

Idea priority Medium
  • Guest
    Reply
    |
    Mar 21, 2017

    This has been shipped in the September 2016 PTFs for V5.2 and V6.1 KC refreshes in September.

  • Guest
    Reply
    |
    Sep 14, 2016

    This RFE has been put into plan.

  • Guest
    Reply
    |
    Jan 14, 2016

    For Fields used in EXEC SQL or EXEC CICS-Statements it could be difficult to find out if they are used before initialization.
    Using Preprocessor instead of coprocessor brings more complexity.
    Maybe add a Sub-Option for Not-Checking fields which are used in "known programs" like DFH* or DSN* (for preprocessor) or in EXEC-Statements (coprocessor)?
    Maybe a help could also be another suboption for fields that are given to a subprogram: all Subprograms always initialize all given variables, so they seem to be initialized if they are used after Calling the subprogram.
    Or more granularily: Give a List of Program-Names which are doing such init-work (to minimize false positives).
    So a Syntax like
    INITBEFOREUSE(INITPROGS("MYROUTINEA,ANOTHERPROGRAM"),IGNORECICSCALLS) (Sorry for ProgramNames longer than 8 characters, only for giving a good example).

    Guenter

  • 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
    |
    Mar 18, 2015

    Would be a great help in finding subtle errors and improving quality (for those who aren't yet through with this issue).

    Our application development had a lot of work in removing un- (resp. LE-only) initialized vars during the past decade. They had to because of a change in technology that lead to re-using COBOL modules once loaded. We then considered to create a detection tool based on ADATA records but it would have required too much effort. A Compiler-based solution would clearly have helped much.

    However, be warned that fields initialized by a VALUE clause only (= only once) may cause similar problems in many cases without being flagged as "uninitialized".

  • Guest
    Reply
    |
    Nov 20, 2014

    This RFE is inline with our multi year strategy. Once this RFE is put in plan, it will be updated accordingly.

  • Guest
    Reply
    |
    Nov 10, 2014

    Of course you are right.
    For Objects in LinkageSection you have to know the whole control flow in all used programs -> not for a simple help in compiler.

  • Guest
    Reply
    |
    Nov 7, 2014

    I think that's a good idea.

    In my opinion only fields in the working storage section - and indexes - should be flagged. What do you think about that, Guenter?