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 PL/I Compilers
Created by Guest
Created on Aug 28, 2018

New value attribute VALUELISTFROM

As a supplement to VALUELIST it might be good to have a new attribute VALUELISTFROM:
VALUELISTFROM( x ) would also specify the allowed values that a variable could hold.
But x is a named constant structure - therefore all their constants (attributes of the named constant structure x) are allowed values.
For example, a function parameter defines their possible and useable functioncodes
dcl 1 function_x_code_values,
2 insert  char(3) value('INS'),
2 delete char(3) value('DEL'),
2 update char(3) value('UPD');
dcl function_x_code  char(3)
   valuelistfrom(function_x_code_values);

Idea priority High
  • Guest
    Reply
    |
    Sep 5, 2019

    this is part of the 5.3 release

  • Guest
    Reply
    |
    Sep 13, 2018

    this would be useful for the reason stated: it would avoid duplication and reduce the chance for error

  • Guest
    Reply
    |
    Aug 30, 2018

    The gain for use was specified at the end of the "use Case"

    With VALUELISTFROM I have to define the valid values only on one place (named constant structure) instead of two places (named constant structure and define alias or valuelist)
    I think that is easier to maintain (less error-prone)

  • Guest
    Reply
    |
    Aug 29, 2018

    the rfe does not say what practical gain would be of adding VALUELISTFORM e.g. woud it be used for testing that could not be done by using VALUELIST and dcl function_x_code_values char(3)
    VALUELIST('INS', UPD' , DEL') and validvalue ? If the is goal is getting the value of a variable/constant then how the value is stored in the first place has no relevance.