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 Under review
Workspace COBOL Compilers
Categories z/OS
Created by Guest
Created on Mar 15, 2024

IBM Enterprise COBOL V6+ - Conditional compilation variable to reflect status of ADV/NOADV compilation option

Hi,

Depending on the ADV / NOADV compilation option chosen, the way of describing the record area of a report file is different:

  • ADV option: the printer control character must not be described

  • NOADV option: the printer control character must be described

Providing a conditional compilation variable reflecting the state of the ADV/NOADV option, aka IGY-ADV, would condition the code.

We have simulated this conditional compilation variable in our compilation procedures, but it would be preferable if the compiler supports it:


Sample:


Options in effect:

NOADV

DEFINE(IGY-ADV=B'0')

[...]

IDENTIFICATION DIVISION.

[...]

>>define IGY-ADV as parameter
[...]
FD VA-FICHIER

block contains 0 records

recording mode is F.

01 VA00.

>>if not IGY-ADV

10 VA00-PCC PIC X. *> printer control character

>>end-if

10 VA00-LINE PIC X(132).

Other compilation options also impact how source code is written and similarly a conditional compilation variable could reflect the state of the option:

  • ARITH(COMPAT|EXTENDED) : 9(18) vs 9(31)

  • AWO : implicit or explicit APPLY WRITE ONLY

  • BLOCK0 : implicit or explicit BLOC CONTAINS 0

  • DISPSIGN(COMPAT|SEP) : automatic separate sign on display or need another data with explicit separate sign

  • INTDATE(ANSI|LILIAN) : calculation using day 1 from Jan 1, 1601 or from Oct 15, 1582

  • SSRANGE : implicit or explicit code to check out of range

Thanks.

Idea priority Medium
  • Admin
    Basil Kanneth
    Reply
    |
    Apr 10, 2024

    This idea is being investigated further.